Class cv::xfeatures2d::AffineFeature2D#
Class implementing affine adaptation for key points. View details
#include <opencv2/xfeatures2d.hpp>Collaboration diagram for cv::xfeatures2d::AffineFeature2D:
Public Member Functions#
Public Member Functions inherited from cv::Feature2D
Return |
Name |
Description |
|---|---|---|
|
|
Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant). |
|
||
|
||
|
||
|
||
|
|
Detects keypoints in an image (first variant) or image set (second variant). |
|
||
|
||
|
Return true if detector object is empty. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
||
|
Stores algorithm parameters in a file storage. |
|
|
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
Class implementing affine adaptation for key points.
A FeatureDetector and a DescriptorExtractor are wrapped to augment the detected points with their affine invariant elliptic region and to compute the feature descriptors on the regions after warping them into circles.
The interface is equivalent to Feature2D, adding operations for Elliptic_KeyPoints instead of KeyPoints.
Member Function Documentation#
create()#
static Ptr< AffineFeature2D > cv::xfeatures2d::AffineFeature2D::create(Ptr< FeatureDetector > keypoint_detector)
Creates an instance where keypoint detector and descriptor extractor are identical.
create()#
static Ptr< AffineFeature2D > cv::xfeatures2d::AffineFeature2D::create(
Ptr< FeatureDetector > keypoint_detector,
Ptr< DescriptorExtractor > descriptor_extractor )
Creates an instance wrapping the given keypoint detector and descriptor extractor.
detect()#
void cv::xfeatures2d::AffineFeature2D::detect(
InputArray image,
std::vector< Elliptic_KeyPoint > & keypoints,
InputArray mask = noArray() )
Detects keypoints in the image using the wrapped detector and performs affine adaptation to augment them with their elliptic regions.
Here is the call graph for this function:
detect()#
void cv::xfeatures2d::AffineFeature2D::detect(
InputArray image,
std::vector< KeyPoint > & keypoints,
InputArray mask = noArray() )
Detects keypoints in an image (first variant) or image set (second variant).
Parameters
image— Image.keypoints— The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .mask— Mask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.
detect()#
void cv::xfeatures2d::AffineFeature2D::detect(
InputArrayOfArrays images,
std::vector< std::vector< KeyPoint > > & keypoints,
InputArrayOfArrays masks = noArray() )
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Parameters
images— Image set.keypoints— The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .masks— Masks for each input image specifying where to look for keypoints (optional). masks[i] is a mask for images[i].
detectAndCompute()#
void cv::xfeatures2d::AffineFeature2D::detectAndCompute(
InputArray image,
InputArray mask,
std::vector< Elliptic_KeyPoint > & keypoints,
OutputArray descriptors,
bool useProvidedKeypoints = false )
Detects keypoints and computes descriptors for their surrounding regions, after warping them into circles.
detectAndCompute()#
void cv::xfeatures2d::AffineFeature2D::detectAndCompute(
InputArray image,
InputArray mask,
std::vector< KeyPoint > & keypoints,
OutputArray descriptors,
bool useProvidedKeypoints = false )
Detects keypoints and computes the descriptors
Source file#
The documentation for this class was generated from the following file:
opencv2/xfeatures2d.hpp