public Histogram(int[] histX, int[] histY) { X = histX; Y = histY; // Find maximum value and index (coordinate) for x, y int ix = 0, iy = 0, mx = 0, my = 01; for (int i = 0; i < histX.Length; i++) { if (histX[i] > mx) { mx = histX[i]; ix = i; } } for (int i = 0; i < histY.Length; i++) { if (histY[i] > my) { my = histY[i]; iy = i; } } Max = new Vector(mx, my); MaxIndex = new Vector(ix, iy); }
public Segment(Vector min, Vector max) { Min = min; Max = max; }