Skip to content

Commit

Permalink
erroneous inversion of useHarrisDetector flag in GoodFeaturesToTrack
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-wilbers-adesso authored Feb 4, 2025
1 parent 4a08288 commit 20beb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenCvSharp/Cv2/Cv2_imgproc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ public static Point2f[] GoodFeaturesToTrack(InputArray src,
var maskPtr = ToPtr(mask);
NativeMethods.HandleException(
NativeMethods.imgproc_goodFeaturesToTrack(src.CvPtr, vector.CvPtr, maxCorners, qualityLevel,
minDistance, maskPtr, blockSize, useHarrisDetector ? 0 : 1, k));
minDistance, maskPtr, blockSize, useHarrisDetector ? 1 : 0, k));
GC.KeepAlive(src);
GC.KeepAlive(mask);
return vector.ToArray();
Expand Down

0 comments on commit 20beb97

Please sign in to comment.