C# Класс OpenCvSharp.Feature2D

Abstract base class for 2D image feature detectors and descriptor extractors
Наследование: Algorithm
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Feature2D System
FromPtr Feature2D

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the resources

Приватные методы

Метод Описание
Feature2D ( ) : System

FromPtr ( IntPtr ptr ) : Feature2D

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

Описание методов

Compute() публичный Метод

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].
Результат void

Compute() публичный Метод

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.
Результат void

Compute() публичный Метод

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.
Результат void

Detect() публичный Метод

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.
Результат KeyPoint[]

Detect() публичный Метод

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.
Результат KeyPoint[]

Detect() публичный Метод

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].
Результат KeyPoint[][]

DetectAndCompute() публичный Метод

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
Результат void

Dispose() защищенный Метод

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. ///
Результат void

Empty() публичный Метод

Return true if detector object is empty
public Empty ( ) : bool
Результат bool