| MatGoodFeaturesToTrack Method |
Finds the strong enough corners where the cornerMinEigenVal() or cornerHarris() report the local maxima.
Input matrix must be 8-bit or floating-point 32-bit, single-channel image.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Point2f[] GoodFeaturesToTrack(
int maxCorners,
double qualityLevel,
double minDistance,
InputArray mask,
int blockSize,
bool useHarrisDetector,
double k
)
Public Function GoodFeaturesToTrack (
maxCorners As Integer,
qualityLevel As Double,
minDistance As Double,
mask As InputArray,
blockSize As Integer,
useHarrisDetector As Boolean,
k As Double
) As Point2f()
public:
array<Point2f>^ GoodFeaturesToTrack(
int maxCorners,
double qualityLevel,
double minDistance,
InputArray^ mask,
int blockSize,
bool useHarrisDetector,
double k
)
member GoodFeaturesToTrack :
maxCorners : int *
qualityLevel : float *
minDistance : float *
mask : InputArray *
blockSize : int *
useHarrisDetector : bool *
k : float -> Point2f[]
Parameters
- maxCorners
- Type: SystemInt32
Maximum number of corners to return. If there are more corners than are found,
the strongest of them is returned. - qualityLevel
- Type: SystemDouble
Parameter characterizing the minimal accepted quality of image corners.
The parameter value is multiplied by the best corner quality measure, which is the minimal eigenvalue
or the Harris function response (see cornerHarris() ). The corners with the quality measure less than
the product are rejected. For example, if the best corner has the quality measure = 1500, and the qualityLevel=0.01,
then all the corners with the quality measure less than 15 are rejected. - minDistance
- Type: SystemDouble
Minimum possible Euclidean distance between the returned corners. - mask
- Type: OpenCvSharpInputArray
Optional region of interest. If the image is not empty
(it needs to have the type CV_8UC1 and the same size as image ), it specifies the region
in which the corners are detected. - blockSize
- Type: SystemInt32
Size of an average block for computing a derivative covariation matrix over each pixel neighborhood. - useHarrisDetector
- Type: SystemBoolean
Parameter indicating whether to use a Harris detector - k
- Type: SystemDouble
Free parameter of the Harris detector.
Return Value
Type:
Point2fOutput vector of detected corners.
See Also