1874c4a5bb
统一补齐对齐核心工具类、RoiAlignment 算子、模板匹配对齐扩展和多语言资源,便于在检测前稳定完成示教 ROI 到运行图的变换。 Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
754 B
C#
20 lines
754 B
C#
namespace XP.ImageProcessing.Core.Alignment;
|
|
|
|
/// <summary>
|
|
/// ROI 对齐变换结果,供流水线写入下游检测算子参数。
|
|
/// </summary>
|
|
public sealed class RoiAlignmentResult
|
|
{
|
|
public bool Success { get; init; }
|
|
public string? ErrorMessage { get; init; }
|
|
|
|
public Pose2D ReferencePose { get; init; }
|
|
public Pose2D MeasuredPose { get; init; }
|
|
|
|
/// <summary>运行图坐标下的多边形顶点(至少 3 点)。</summary>
|
|
public IReadOnlyList<Point2D> TransformedPoints { get; init; } = Array.Empty<Point2D>();
|
|
|
|
/// <summary>四舍五入后的整型顶点,可直接写入 PolyX/PolyY。</summary>
|
|
public IReadOnlyList<(int X, int Y)> TransformedPointsInt { get; init; } = Array.Empty<(int X, int Y)>();
|
|
}
|