public SensorTracker(System.Windows.Controls.Image visualisation, MeasurementLoader manager, System.Windows.Controls.TextBlock textBlock) { System.Diagnostics.Debug.WriteLine("Initialising tracking system..."); // Store given variables this.ScanProcessManager = manager; this.displayText = textBlock; this.Visualisation = visualisation; // Get row pointers, to have as reference rather than calculating every time (used by Highlight) rowHeaders = new int[480]; for (int row = 0; row < 480; row++) { rowHeaders[row] = row * 640 * 4; } x_array = new int[3]; y_array = new int[3]; }