/// <summary> /// Establishes a listening connection /// </summary> protected override void setupListener() { m_isoImageHandler = (obj) => { doWork(obj); }; Processing.getInstance().IsolationImageFilled += m_isoImageHandler; }
/// <summary> /// Listener for preprocessing image ready /// </summary> protected override void setupListener() { m_preprocImageHandler = (obj) => { doWork(obj); }; Processing.getInstance().PreprocessImageFilled += m_preprocImageHandler; }
protected override void setupListener() { m_PCAImageHandler = (obj) => { //Thread t = new Thread(new ParameterizedThreadStart(doWork)); //t.Start(obj); doWork(obj); }; Processing.getInstance().PCAImageFilled += m_PCAImageHandler; }
/// <summary> /// Establishes a listening connection /// </summary> private void setupProcessingListener() { //Sets the altered feed to the image if the altered feed is on screen m_handler = (imgData) => { if (tabControl1.SelectedIndex == 0) { mainAlteredFeed.Image = imgData.Image; } else { testingPic.Image = imgData.Image; } }; m_processing.ReturnImageFilled += m_handler; }
private void testButton_Click(object sender, EventArgs e) { if (!identifiedX.Text.Equals("") && !identifiedY.Text.Equals("") && !identifiedOri.Text.Equals("") && identifiedGest.SelectedIndex > 0) { featuresWarning.Visible = false; //Add the stop functionality after grabbing an image Processing.ImageReadyHandler handler = null; handler = (imgData) => { m_processing.ReturnImageFilled -= handler; extractData(imgData); }; m_processing.ReturnImageFilled += handler; m_processing.test(m_testImage); } else { featuresWarning.Visible = true; } }