MATLAB File Help: cv.goodFeaturesToTrack Index
cv.goodFeaturesToTrack

Determines strong corners on an image

corners = cv.goodFeaturesToTrack(image)
corners = cv.goodFeaturesToTrack(image, 'OptionName', optionValue, ...)

Input

Output

Options

The function finds the most prominent corners in the image or in the specified image region, as described in [Shi94]:

  1. Function calculates the corner quality measure at every source image pixel using the cv.cornerMinEigenVal or cv.cornerHarris.
  2. Function performs a non-maximum suppression (the local maximums in 3x3 neighborhood are retained).
  3. The corners with the minimal eigenvalue less than QualityLevel * max_{x,y}(qualityMeasureMap(x,y)) are rejected.
  4. The remaining corners are sorted by the quality measure in the descending order.
  5. Function throws away each corner for which there is a stronger corner at a distance less than maxDistance.

The function can be used to initialize a point-based tracker of an object.

NOTE: If the function is called with different values A and B of the parameter QualityLevel, and A > B, the vector of returned corners with QualityLevel=A will be the prefix of the output vector with QualityLevel=B.

References

[Shi94]:

Jianbo Shi and Carlo Tomasi. Good features to track. In Computer Vision and Pattern Recognition, 1994. Proceedings CVPR'94., 1994 IEEE Computer Society Conference on, pages 593-600. IEEE, 1994.

See also