check point

This commit is contained in:
meelstorm
2025-07-14 12:03:59 +02:00
commit d3cb790bd9
431 changed files with 44078 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using Hawkeye.VisionBuilder.Workflow.Datatypes;
using Hawkeye.VisionBuilder.Workflow.Operations.Attributes;
namespace Hawkeye.VisionBuilder.Workflow.Operations.Image;
[Category("Image")]
public class ImageSizeOperation : BaseOperation
{
public ImageSizeOperation()
{
CanHaveProcessingError = false;
}
public int Width { get; set; } = 450;
public int Height { get; set; } = 352;
protected override void InterpretInternal(Context context)
{
if (!CheckImageExists(context)) return;
context.ActiveImage = new HawkeyeImage()
{
ImageData = context.ActiveImage.ImageData.Resize(new OpenCvSharp.Size(Width, Height))
};
Status = $"Image resized to {Width}x{Height}";
Result = true;
}
}