C# Class OpenCvSharp.KeyPointsFilter

A class filters a vector of keypoints.
ファイルを表示 Open project: shimat/opencvsharp

Public Methods

Method Description
RemoveDuplicated ( IEnumerable keypoints ) : KeyPoint[]

Remove duplicated keypoints.

RetainBest ( IEnumerable keypoints, int npoints ) : KeyPoint[]

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

RunByImageBorder ( IEnumerable keypoints, Size imageSize, int borderSize ) : KeyPoint[]

Remove keypoints within borderPixels of an image edge.

RunByKeypointSize ( IEnumerable keypoints, float minSize, float maxSize = Single.MaxValue ) : KeyPoint[]

Remove keypoints of sizes out of range.

RunByPixelsMask ( IEnumerable keypoints, OpenCvSharp.Mat mask ) : KeyPoint[]

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

Method Details

RemoveDuplicated() public static method

Remove duplicated keypoints.
public static RemoveDuplicated ( IEnumerable keypoints ) : KeyPoint[]
keypoints IEnumerable
return KeyPoint[]

RetainBest() public static method

Retain the specified number of the best keypoints (according to the response)
public static RetainBest ( IEnumerable keypoints, int npoints ) : KeyPoint[]
keypoints IEnumerable
npoints int
return KeyPoint[]

RunByImageBorder() public static method

Remove keypoints within borderPixels of an image edge.
public static RunByImageBorder ( IEnumerable keypoints, Size imageSize, int borderSize ) : KeyPoint[]
keypoints IEnumerable
imageSize Size
borderSize int
return KeyPoint[]

RunByKeypointSize() public static method

Remove keypoints of sizes out of range.
public static RunByKeypointSize ( IEnumerable keypoints, float minSize, float maxSize = Single.MaxValue ) : KeyPoint[]
keypoints IEnumerable
minSize float
maxSize float
return KeyPoint[]

RunByPixelsMask() public static method

Remove keypoints from some image by mask for pixels of this image.
public static RunByPixelsMask ( IEnumerable keypoints, OpenCvSharp.Mat mask ) : KeyPoint[]
keypoints IEnumerable
mask OpenCvSharp.Mat
return KeyPoint[]