using AI.Common; using AI.DiagSystem; using System.Collections.Generic; namespace AIDiagnosisDemo.Infrastucture { public class MyRect { public int Left { get; } public int Top { get; } public int Right { get; } public int Bottom { get; } public int Width { get; } public int Height { get; } public MyRect(int left, int top, int width, int height) { Left = left; Top = top; Width = width; Height = height; Right = left + width; Bottom = top + height; } } public class MyPoint { public int X { get; set; } public int Y { get; set; } public MyPoint(int x, int y) { X = x; Y = y; } } public class Roi { public EnumOrgans Organ { get; set; } public MyRect BoundBox { get; set; } public MyPoint[][] Contour { get; set; } public Point2D[][] Contours { get; set; } public System.Windows.Media.Brush Color { get; set; } public string LabelName { get; set; } public string Confidence { get; set; } public List Descriptions { get; set; } public Roi(EnumOrgans organ, MyRect boundBox, Point2D[][] contours, System.Windows.Media.Brush color, string labelName, string confidence, List descriptions) { Organ = organ; BoundBox = boundBox; Contours = contours; Color = color; LabelName = labelName; Confidence = confidence; Descriptions = descriptions; } } }