Method GoodFeaturesToTrackWithQuality
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
GoodFeaturesToTrackWithQuality(InputArray, int, double, double, InputArray, OutputArray, int, int, bool, double)
Same as GoodFeaturesToTrack, but returns also quality measure of the detected corners.
public static Point2f[] GoodFeaturesToTrackWithQuality(InputArray src, int maxCorners, double qualityLevel, double minDistance, InputArray mask, OutputArray cornersQuality, int blockSize = 3, int gradientSize = 3, bool useHarrisDetector = false, double k = 0.04)
Parameters
srcInputArrayInput 8-bit or floating-point 32-bit, single-channel image.
maxCornersintMaximum number of corners to return. If there are more corners than are found, the strongest of them is returned.
qualityLeveldoubleParameter characterizing the minimal accepted quality of image corners.
minDistancedoubleMinimum possible Euclidean distance between the returned corners.
maskInputArrayRegion 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.
cornersQualityOutputArrayOutput vector of quality measure of the detected corners.
blockSizeintSize of an average block for computing a derivative covariation matrix over each pixel neighborhood.
gradientSizeintAperture parameter for the Sobel operator used for derivatives computation.
useHarrisDetectorboolParameter indicating whether to use a Harris detector
kdoubleFree parameter of the Harris detector.
Returns
- Point2f[]
Output vector of detected corners.