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

@@ -21,7 +21,7 @@ public class ImageSizeProportionOperation:BaseOperation
context.ActiveImage = new HawkeyeImage()
{
ImageData = context.ActiveImage!.ImageData.Resize(Size.Zero, Width, Height)
ImageData = context.ActiveImage!.ImageData.Resize(new Size(0,0), Width, Height)
};
Status = $"Image resized to {context.ActiveImage.ImageData.Width}x{context.ActiveImage.ImageData.Height}";

View File

@@ -18,7 +18,7 @@ public class InvertOperation:BaseOperation
if (!CheckImageExists(context)) return;
var res = new Mat(context.ActiveImage.ImageData.Size(), context.ActiveImage.ImageData.Type(), 0);
var res = new Mat(context.ActiveImage.ImageData.Size(), context.ActiveImage.ImageData.Type(), Scalar.All(0));
Cv2.BitwiseNot(context.ActiveImage.ImageData, res);
context.ActiveImage = new HawkeyeImage()
{