OpenCV for Unity 2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.Features2dModule.Feature2D Class Reference

Abstract base class for 2D image feature detectors and descriptor extractors. More...

Inheritance diagram for OpenCVForUnity.Features2dModule.Feature2D:
OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject OpenCVForUnity.Features2dModule.AKAZE OpenCVForUnity.Features2dModule.AffineFeature OpenCVForUnity.Features2dModule.AgastFeatureDetector OpenCVForUnity.Features2dModule.BRISK OpenCVForUnity.Features2dModule.FastFeatureDetector OpenCVForUnity.Features2dModule.GFTTDetector OpenCVForUnity.Features2dModule.KAZE OpenCVForUnity.Features2dModule.MSER OpenCVForUnity.Features2dModule.ORB OpenCVForUnity.Features2dModule.SIFT OpenCVForUnity.Features2dModule.SimpleBlobDetector OpenCVForUnity.Xfeatures2dModule.AffineFeature2D OpenCVForUnity.Xfeatures2dModule.BEBLID OpenCVForUnity.Xfeatures2dModule.BoostDesc OpenCVForUnity.Xfeatures2dModule.BriefDescriptorExtractor OpenCVForUnity.Xfeatures2dModule.DAISY OpenCVForUnity.Xfeatures2dModule.FREAK OpenCVForUnity.Xfeatures2dModule.HarrisLaplaceFeatureDetector OpenCVForUnity.Xfeatures2dModule.LATCH OpenCVForUnity.Xfeatures2dModule.LUCID OpenCVForUnity.Xfeatures2dModule.MSDDetector OpenCVForUnity.Xfeatures2dModule.StarDetector OpenCVForUnity.Xfeatures2dModule.TEBLID OpenCVForUnity.Xfeatures2dModule.VGG

Public Member Functions

void detect (Mat image, MatOfKeyPoint keypoints, Mat mask)
 Detects keypoints in an image (first variant) or image set (second variant).
 
void detect (Mat image, MatOfKeyPoint keypoints)
 Detects keypoints in an image (first variant) or image set (second variant).
 
void detect (List< Mat > images, List< MatOfKeyPoint > keypoints, List< Mat > masks)
 
void detect (List< Mat > images, List< MatOfKeyPoint > keypoints)
 
void compute (Mat image, MatOfKeyPoint keypoints, Mat descriptors)
 Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).
 
void compute (List< Mat > images, List< MatOfKeyPoint > keypoints, List< Mat > descriptors)
 
void detectAndCompute (Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors, bool useProvidedKeypoints)
 
void detectAndCompute (Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors)
 
int descriptorSize ()
 
int descriptorType ()
 
int defaultNorm ()
 
void write (string fileName)
 
void read (string fileName)
 
override bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
override string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state.
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new Feature2D __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Abstract base class for 2D image feature detectors and descriptor extractors.

Member Function Documentation

◆ __fromPtr__()

static new Feature2D OpenCVForUnity.Features2dModule.Feature2D.__fromPtr__ ( IntPtr addr)
static

◆ compute() [1/2]

void OpenCVForUnity.Features2dModule.Feature2D.compute ( List< Mat > images,
List< MatOfKeyPoint > keypoints,
List< Mat > descriptors )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
imagesImage set.
keypointsInput collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).
descriptorsComputed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

◆ compute() [2/2]

void OpenCVForUnity.Features2dModule.Feature2D.compute ( Mat image,
MatOfKeyPoint keypoints,
Mat descriptors )

Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).

Parameters
imageImage.
keypointsInput collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).
descriptorsComputed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

◆ defaultNorm()

int OpenCVForUnity.Features2dModule.Feature2D.defaultNorm ( )

◆ descriptorSize()

int OpenCVForUnity.Features2dModule.Feature2D.descriptorSize ( )

◆ descriptorType()

int OpenCVForUnity.Features2dModule.Feature2D.descriptorType ( )

◆ detect() [1/4]

void OpenCVForUnity.Features2dModule.Feature2D.detect ( List< Mat > images,
List< MatOfKeyPoint > keypoints )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
imagesImage set.
keypointsThe detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .
masksMasks for each input image specifying where to look for keypoints (optional). masks[i] is a mask for images[i].

◆ detect() [2/4]

void OpenCVForUnity.Features2dModule.Feature2D.detect ( List< Mat > images,
List< MatOfKeyPoint > keypoints,
List< Mat > masks )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
imagesImage set.
keypointsThe detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .
masksMasks for each input image specifying where to look for keypoints (optional). masks[i] is a mask for images[i].

◆ detect() [3/4]

void OpenCVForUnity.Features2dModule.Feature2D.detect ( Mat image,
MatOfKeyPoint keypoints )

Detects keypoints in an image (first variant) or image set (second variant).

Parameters
imageImage.
keypointsThe detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .
maskMask 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() [4/4]

void OpenCVForUnity.Features2dModule.Feature2D.detect ( Mat image,
MatOfKeyPoint keypoints,
Mat mask )

Detects keypoints in an image (first variant) or image set (second variant).

Parameters
imageImage.
keypointsThe detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .
maskMask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.

◆ detectAndCompute() [1/2]

void OpenCVForUnity.Features2dModule.Feature2D.detectAndCompute ( Mat image,
Mat mask,
MatOfKeyPoint keypoints,
Mat descriptors )

Detects keypoints and computes the descriptors

◆ detectAndCompute() [2/2]

void OpenCVForUnity.Features2dModule.Feature2D.detectAndCompute ( Mat image,
Mat mask,
MatOfKeyPoint keypoints,
Mat descriptors,
bool useProvidedKeypoints )

Detects keypoints and computes the descriptors

◆ Dispose()

◆ empty()

override bool OpenCVForUnity.Features2dModule.Feature2D.empty ( )
virtual

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

Reimplemented from OpenCVForUnity.CoreModule.Algorithm.

◆ getDefaultName()

◆ read()

void OpenCVForUnity.Features2dModule.Feature2D.read ( string fileName)

◆ write()

void OpenCVForUnity.Features2dModule.Feature2D.write ( string fileName)

The documentation for this class was generated from the following file: