opencv 4.10

This commit is contained in:
EugeneTes
2026-03-24 11:57:27 +01:00
parent 34b74ecdcd
commit a1838cafeb
26 changed files with 231 additions and 34 deletions

View File

@@ -31,7 +31,7 @@ public class TakeBiggestOperation : BaseOperation
var largestContour = contours.OrderByDescending(c => Cv2.ContourArea(c)).First();
var mask = Mat.Zeros(image.Size(), MatType.CV_8UC1).ToMat();
Cv2.DrawContours(mask, new[] {largestContour}, -1, 255, -1);
Cv2.DrawContours(mask, new[] {largestContour}, -1, Scalar.All(255), -1);
context.ActiveImage = new HawkeyeImage()
{