Files
2026-07-13 13:13:17 +08:00

35 lines
1.3 KiB
C#

namespace Lib.image.analyze;
[Guid("0e13e34f-c07b-4ada-8c87-6b89f4ed8b41")]
internal sealed class CompareImages : Instance<CompareImages>
,ITransformable
{
[Output(Guid = "2d59fec4-af4e-4db2-bc11-3685f31e9de5")]
public readonly TransformCallbackSlot<Texture2D> TextureOutput = new();
public CompareImages()
{
TextureOutput.TransformableOp = this;
}
IInputSlot ITransformable.TranslationInput => Center;
IInputSlot ITransformable.RotationInput => null;
IInputSlot ITransformable.ScaleInput => null;
public Action<Instance, EvaluationContext> TransformCallback { get; set; }
[Input(Guid = "5537a990-0d27-4e91-912e-8f913a734722")]
public readonly InputSlot<Texture2D> Texture2d = new InputSlot<Texture2D>();
[Input(Guid = "78c3486a-3a82-4e61-81fd-3da904fd7aed")]
public readonly InputSlot<Texture2D> Texture2d2 = new InputSlot<Texture2D>();
[Input(Guid = "f46ed94a-7eb2-44d6-9cbb-f8eab586f7c5")]
public readonly InputSlot<float> Rotate = new InputSlot<float>();
[Input(Guid = "beada8f0-cece-4526-aa29-3546bebd276a")]
public readonly InputSlot<Vector2> Center = new InputSlot<Vector2>();
[Input(Guid = "99171ae6-fb07-4121-bf23-e97f30b33be5")]
public readonly InputSlot<float> IntensityRange = new InputSlot<float>();
}