Table of Contents

Class KeyPointsFilter

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

A class filters a vector of keypoints.

public static class KeyPointsFilter
Inheritance
KeyPointsFilter
Inherited Members

Methods

RemoveDuplicated(IEnumerable<KeyPoint>)

Remove duplicated keypoints.

public static KeyPoint[] RemoveDuplicated(IEnumerable<KeyPoint> keypoints)

Parameters

keypoints IEnumerable<KeyPoint>

Returns

KeyPoint[]

RemoveDuplicatedSorted(IEnumerable<KeyPoint>)

Remove duplicated keypoints and sort the remaining keypoints

public static KeyPoint[] RemoveDuplicatedSorted(IEnumerable<KeyPoint> keypoints)

Parameters

keypoints IEnumerable<KeyPoint>

Returns

KeyPoint[]

RetainBest(IEnumerable<KeyPoint>, int)

Retain the specified number of the best keypoints (according to the response)

public static KeyPoint[] RetainBest(IEnumerable<KeyPoint> keypoints, int nPoints)

Parameters

keypoints IEnumerable<KeyPoint>
nPoints int

Returns

KeyPoint[]

RunByImageBorder(IEnumerable<KeyPoint>, Size, int)

Remove keypoints within borderPixels of an image edge.

public static KeyPoint[] RunByImageBorder(IEnumerable<KeyPoint> keypoints, Size imageSize, int borderSize)

Parameters

keypoints IEnumerable<KeyPoint>
imageSize Size
borderSize int

Returns

KeyPoint[]

RunByKeypointSize(IEnumerable<KeyPoint>, float, float)

Remove keypoints of sizes out of range.

public static KeyPoint[] RunByKeypointSize(IEnumerable<KeyPoint> keypoints, float minSize, float maxSize = 3.4028235E+38)

Parameters

keypoints IEnumerable<KeyPoint>
minSize float
maxSize float

Returns

KeyPoint[]

RunByPixelsMask(IEnumerable<KeyPoint>, Mat)

Remove keypoints from some image by mask for pixels of this image.

public static KeyPoint[] RunByPixelsMask(IEnumerable<KeyPoint> keypoints, Mat mask)

Parameters

keypoints IEnumerable<KeyPoint>
mask Mat

Returns

KeyPoint[]