Table of Contents

Method Detect

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Detect(Mat, Mat?)

Detect keypoints in an image.

public KeyPoint[] Detect(Mat image, Mat? mask = null)

Parameters

image Mat

The image.

mask Mat

Mask specifying where to look for keypoints (optional). Must be a char matrix with non-zero values in the region of interest.

Returns

KeyPoint[]

The detected keypoints.

Detect(InputArray, InputArray)

Detect keypoints in an image.

public KeyPoint[] Detect(InputArray image, InputArray mask = default)

Parameters

image InputArray

The image.

mask InputArray

Mask specifying where to look for keypoints (optional). Must be a char matrix with non-zero values in the region of interest.

Returns

KeyPoint[]

The detected keypoints.

Detect(IEnumerable<Mat>, IEnumerable<Mat>?)

Detect keypoints in an image set.

public KeyPoint[][] Detect(IEnumerable<Mat> images, IEnumerable<Mat>? masks = null)

Parameters

images IEnumerable<Mat>

Image collection.

masks IEnumerable<Mat>

Masks for image set. masks[i] is a mask for images[i].

Returns

KeyPoint[][]

Collection of keypoints detected in an input images. keypoints[i] is a set of keypoints detected in an images[i].