Class Feature2DAsyncExtension
Class that contains extension methods for Feature2DAsync
public static class Feature2DAsyncExtension
- Inheritance
-
Feature2DAsyncExtension
- Inherited Members
Methods
ComputeAsync(IFeature2DAsync, IInputArray, IOutputArray, IOutputArray, Stream)
Compute the descriptors on the image from the given keypoint locations.
public static void ComputeAsync(this IFeature2DAsync feature2DAsync, IInputArray image, IOutputArray keypoints, IOutputArray descriptors, Stream stream = null)
Parameters
feature2DAsync
IFeature2DAsyncThe Feature2DAsync object
image
IInputArrayThe image to compute descriptors from
keypoints
IOutputArrayThe keypoints where the descriptor computation is perfromed
descriptors
IOutputArrayThe descriptors from the given keypoints
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
Convert(IFeature2DAsync, IInputArray, VectorOfKeyPoint)
Converts keypoints array from internal representation to standard vector.
public static void Convert(this IFeature2DAsync feature2DAsync, IInputArray gpuKeypoints, VectorOfKeyPoint keypoints)
Parameters
feature2DAsync
IFeature2DAsyncThe Feature2DAsync object
gpuKeypoints
IInputArrayGpuMat representation of the keypoints.
keypoints
VectorOfKeyPointVector of keypoints
DetectAndComputeAsync(IFeature2DAsync, IInputArray, IInputArray, IOutputArray, IOutputArray, bool, Stream)
Detect keypoints in an image and compute the descriptors on the image from the keypoint locations.
public static void DetectAndComputeAsync(this IFeature2DAsync feature2DAsync, IInputArray image, IInputArray mask, IOutputArray keyPoints, IOutputArray descriptors, bool useProvidedKeyPoints, Stream stream = null)
Parameters
feature2DAsync
IFeature2DAsyncThe Feature2DAsync object
image
IInputArrayThe image
mask
IInputArrayThe optional mask, can be null if not needed
keyPoints
IOutputArrayThe detected keypoints will be stored in this vector
descriptors
IOutputArrayThe descriptors from the keypoints
useProvidedKeyPoints
boolIf true, the method will skip the detection phase and will compute descriptors for the provided keypoints
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
DetectAsync(IFeature2DAsync, IInputArray, IOutputArray, IInputArray, Stream)
Detect the features in the image
public static void DetectAsync(this IFeature2DAsync feature2DAsync, IInputArray image, IOutputArray keypoints, IInputArray mask = null, Stream stream = null)
Parameters
feature2DAsync
IFeature2DAsyncThe Feature2DAsync object
image
IInputArrayThe image from which the features will be detected from
keypoints
IOutputArrayThe result vector of keypoints
mask
IInputArrayThe optional mask.
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).