DVision::ImageFunctions Class Reference
List of all members.
Static Public Member Functions |
static cv::Mat | getPatch (const cv::Mat &im, const cv::KeyPoint &kp, int final_size=-1, bool rectifyOrientation=true, bool useCartesianAngle=false) |
static cv::Mat | getPatch (const cv::Mat &im, const cv::Point2f &pt, unsigned int patch_size) |
Member Function Documentation
cv::Mat ImageFunctions::getPatch |
( |
const cv::Mat & |
im, |
|
|
const cv::Point2f & |
pt, |
|
|
unsigned int |
patch_size | |
|
) |
| | [static] |
Extracts a patch from an image. The patch is cropped if it goes beyond the image size
- Parameters:
-
| im | image to extract the patch from |
| pt | center of the patch in im |
| patch_size | number of rows (and cols) of the patch extracted |
cv::Mat ImageFunctions::getPatch |
( |
const cv::Mat & |
im, |
|
|
const cv::KeyPoint & |
kp, |
|
|
int |
final_size = -1 , |
|
|
bool |
rectifyOrientation = true , |
|
|
bool |
useCartesianAngle = false | |
|
) |
| | [static] |
Extracts the patch described by a keypoint from an image. The patch is cropped if it goes beyond the image size.
- Parameters:
-
| im | image to extract the patch from |
| kp | keypoint with the coordinates, the size and the angle of the patch |
| final_size | if given, the patch is resized to this size. If not given, the size of the keypoint is used as a diameter. |
| rectifyOrientation | iif true, the patch is rotated according to the angle of the keypoint (if it is not -1) |
| useCartesianAngle | if true, the angle of the keypoints is assumed to be in Cartesian axis. If false, the vision reference is used instead (X points right, Y points up) |
- Note:
- OpenCV SURF keypoints use Cartesian coordinates
-
OpenCV ORB keypoints use vision coordinates
The documentation for this class was generated from the following files: