Class cv::xfeatures2d::AffineFeature2D#

Class implementing affine adaptation for key points. View details

Collaboration diagram for cv::xfeatures2d::AffineFeature2D:

Public Member Functions#

Public Member Functions inherited from cv::Feature2D
Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

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:

cv::xfeatures2d::AffineFeature2D::detect Node1 cv::xfeatures2d::AffineFeature2 D::detect Node2 cv::noArray Node1->Node2

cv::xfeatures2d::AffineFeature2D::detect Node1 cv::xfeatures2d::AffineFeature2 D::detect Node2 cv::noArray Node1->Node2

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: