public CameraCapture(MainWindow temp) { window = temp; // get main window reference InitializeComponent(); initializeCamera(); // initialize the camera trackBar1.Value = thresh; // intiialize default thresh value imageProcess = ImageProcess.Instance; // get singleton instance }
public ImageDraw(MainWindow temp) { window = temp; // get reference to main window InitializeComponent(); imageProcess = ImageProcess.Instance; // image process instance }