11 private readonly ushort nr;
12 private readonly
int x0;
13 private readonly
int y0;
14 private int nrPixels = 0;
15 private Point[]? contour =
null;
31 this.x0 = this.minX = this.maxX =
X0;
32 this.y0 = this.minY = this.maxY =
Y0;
36 internal void AddPixels(
int x1,
int x2,
int y)
38 this.nrPixels += x2 - x1 + 1;
48 else if (y > this.maxY)
55 public ushort
Nr => this.nr;
65 public int MinX => this.minX;
70 public int MaxX => this.maxX;
75 public int MinY => this.minY;
80 public int MaxY => this.maxY;
85 public int X0 => this.x0;
90 public int Y0 => this.y0;
95 public int Width => this.maxX - this.minX + 1;
100 public int Height => this.maxY - this.minY + 1;
114 this.contour ??= this.map.FindContour(this.x0, this.y0, this.nr);
Contains an object map of contents in an image.
Represents a point in an image.