C# Class OpenCvSharp.Feature2D

Abstract base class for 2D image feature detectors and descriptor extractors
Inheritance: Algorithm
Show file Open project: shimat/opencvsharp Class Usage Examples

Private Properties

Property Type Description
Feature2D System
FromPtr Feature2D

Public Methods

Method Description
Compute ( IEnumerable images, KeyPoint &keypoints, IEnumerable descriptors ) : void

Compute the descriptors for a keypoints collection detected in image collection.

Compute ( InputArray image, KeyPoint inKeypoints, KeyPoint &outKeypoints, OutputArray descriptors ) : void

Compute the descriptors for a set of keypoints in an image.

Compute ( InputArray image, KeyPoint &keypoints, OutputArray descriptors ) : void

Compute the descriptors for a set of keypoints in an image.

Detect ( InputArray image, OpenCvSharp.Mat mask = null ) : KeyPoint[]

Detect keypoints in an image.

Detect ( OpenCvSharp.Mat image, OpenCvSharp.Mat mask = null ) : KeyPoint[]

Detect keypoints in an image.

Detect ( IEnumerable images, IEnumerable masks = null ) : KeyPoint[][]

Detect keypoints in an image set.

DetectAndCompute ( InputArray image, InputArray mask, KeyPoint &keypoints, OutputArray descriptors, bool useProvidedKeypoints = false ) : void

Detects keypoints and computes the descriptors

Empty ( ) : bool

Return true if detector object is empty

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the resources

Private Methods

Method Description
Feature2D ( ) : System

FromPtr ( IntPtr ptr ) : Feature2D

Creates instance from cv::Ptr<T> . ptr is disposed when the wrapper disposes.

Method Details

Compute() public method

Compute the descriptors for a keypoints collection detected in image collection.
public Compute ( IEnumerable images, KeyPoint &keypoints, IEnumerable descriptors ) : void
images IEnumerable Image collection.
keypoints KeyPoint Input keypoints collection. keypoints[i] is keypoints detected in images[i]. /// Keypoints for which a descriptor cannot be computed are removed.
descriptors IEnumerable Descriptor collection. descriptors[i] are descriptors computed for set keypoints[i].
return void

Compute() public method

Compute the descriptors for a set of keypoints in an image.
public Compute ( InputArray image, KeyPoint inKeypoints, KeyPoint &outKeypoints, OutputArray descriptors ) : void
image InputArray The image.
inKeypoints KeyPoint The input keypoints. Keypoints for which a descriptor cannot be computed are removed.
outKeypoints KeyPoint
descriptors OutputArray Copmputed descriptors. Row i is the descriptor for keypoint i.
return void

Compute() public method

Compute the descriptors for a set of keypoints in an image.
public Compute ( InputArray image, KeyPoint &keypoints, OutputArray descriptors ) : void
image InputArray The image.
keypoints KeyPoint The input keypoints. Keypoints for which a descriptor cannot be computed are removed.
descriptors OutputArray Copmputed descriptors. Row i is the descriptor for keypoint i.
return void

Detect() public method

Detect keypoints in an image.
public Detect ( InputArray image, OpenCvSharp.Mat mask = null ) : KeyPoint[]
image InputArray The image.
mask OpenCvSharp.Mat Mask specifying where to look for keypoints (optional). /// Must be a char matrix with non-zero values in the region of interest.
return KeyPoint[]

Detect() public method

Detect keypoints in an image.
public Detect ( OpenCvSharp.Mat image, OpenCvSharp.Mat mask = null ) : KeyPoint[]
image OpenCvSharp.Mat The image.
mask OpenCvSharp.Mat Mask specifying where to look for keypoints (optional). /// Must be a char matrix with non-zero values in the region of interest.
return KeyPoint[]

Detect() public method

Detect keypoints in an image set.
public Detect ( IEnumerable images, IEnumerable masks = null ) : KeyPoint[][]
images IEnumerable Image collection.
masks IEnumerable Masks for image set. masks[i] is a mask for images[i].
return KeyPoint[][]

DetectAndCompute() public method

Detects keypoints and computes the descriptors
public DetectAndCompute ( InputArray image, InputArray mask, KeyPoint &keypoints, OutputArray descriptors, bool useProvidedKeypoints = false ) : void
image InputArray
mask InputArray
keypoints KeyPoint
descriptors OutputArray
useProvidedKeypoints bool
return void

Dispose() protected method

Releases the resources
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

Empty() public method

Return true if detector object is empty
public Empty ( ) : bool
return bool