diff options
Diffstat (limited to 'UVtools.Core/Managers/IssueManager.cs')
-rw-r--r-- | UVtools.Core/Managers/IssueManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/Managers/IssueManager.cs b/UVtools.Core/Managers/IssueManager.cs index 6eb6874..a8109ee 100644 --- a/UVtools.Core/Managers/IssueManager.cs +++ b/UVtools.Core/Managers/IssueManager.cs @@ -1115,7 +1115,7 @@ namespace UVtools.Core.Managers CvInvoke.Circle(circleCheck, new(centroid.X + inverseOffset.X, centroid.Y + inverseOffset.Y), diameter, EmguExtensions.WhiteColor, -1); CvInvoke.BitwiseAnd(circleCheck, contourMat, circleCheck); - return circleCheck.FindFirstPositivePixel() != -1 + return !circleCheck.IsZeroed() ? centroid /* 5px centroid is inside layer! drill baby drill */ : new Point(-1,-1); /* centroid is not inside the actual contour, no drill */ } |