private void buttonNormalize_Click(object sender, EventArgs e) { Image <Bgr, byte> image = imageCopy.Convert <Bgr, byte>(); ImageProcessing imgProcessModule = new ImageProcessing(); imgProcessModule.ImageProcess(image.Data, image.Rows, image.Cols, (int)numericDownPrag.Value, (int)numericUpPrag.Value); FormVisualizer imageViz = new FormVisualizer(FormVisualizer.DisplayMode.Emgu, "Test"); imageViz.SetPicture(image); imageViz.Show(); }
private void SetVisualizerPositions() { vizR = new FormVisualizer(FormVisualizer.DisplayMode.Emgu, "Red"); vizG = new FormVisualizer(FormVisualizer.DisplayMode.Emgu, "Green"); vizB = new FormVisualizer(FormVisualizer.DisplayMode.Emgu, "Blue"); vizY = new FormVisualizer(FormVisualizer.DisplayMode.Emgu, "Yellow"); RegistryKey rk = null; try { rk = Registry.LocalMachine.OpenSubKey("SOFTWARE\\" + this.ProductName); if ((rk != null) && ((string)rk.GetValue("R_K", "-1") != "-1")) { FormWebCamEmgu.ReadWindowState(rk, vizR, "Red"); FormWebCamEmgu.ReadWindowState(rk, vizG, "Green"); FormWebCamEmgu.ReadWindowState(rk, vizB, "Blue"); FormWebCamEmgu.ReadWindowState(rk, vizY, "Yellow"); } } catch (Exception) { MessageBox.Show("Problem occurred while reading registry saved properties"); } finally { if (rk != null) { rk.Dispose(); } } vizR.Show(); vizG.Show(); vizB.Show(); vizY.Show(); }