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
keypointsIEnumerable<KeyPoint>
Returns
- KeyPoint[]
RemoveDuplicatedSorted(IEnumerable<KeyPoint>)
Remove duplicated keypoints and sort the remaining keypoints
public static KeyPoint[] RemoveDuplicatedSorted(IEnumerable<KeyPoint> keypoints)
Parameters
keypointsIEnumerable<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
keypointsIEnumerable<KeyPoint>nPointsint
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
keypointsIEnumerable<KeyPoint>imageSizeSizeborderSizeint
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
keypointsIEnumerable<KeyPoint>minSizefloatmaxSizefloat
Returns
- KeyPoint[]
RunByPixelsMask(IEnumerable<KeyPoint>, InputArray)
Remove keypoints from some image by mask for pixels of this image.
public static KeyPoint[] RunByPixelsMask(IEnumerable<KeyPoint> keypoints, InputArray mask)
Parameters
keypointsIEnumerable<KeyPoint>maskInputArray
Returns
- KeyPoint[]
RunByPixelsMask2VectorPoint(IEnumerable<KeyPoint>, IEnumerable<IEnumerable<Point>>, InputArray)
Remove objects from some image and a vector of points by mask for pixels of this image.
public static (KeyPoint[] Keypoints, Point[][] RemoveFrom) RunByPixelsMask2VectorPoint(IEnumerable<KeyPoint> keypoints, IEnumerable<IEnumerable<Point>> removeFrom, InputArray mask)
Parameters
keypointsIEnumerable<KeyPoint>removeFromIEnumerable<IEnumerable<Point>>maskInputArray
Returns
- (KeyPoint[] Keypoints, Point[][] RemoveFrom)