Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        private void VisualizeResults(Image <Bgr, byte> imgR,
                                      Image <Bgr, byte> imgG, Image <Bgr, byte> imgB, Image <Bgr, byte> imgY)
        {
            if ((vizR == null) || (vizG == null) ||
                (vizB == null) || (vizY == null))
            {
                SetVisualizerPositions();
            }

            vizR.SetPicture(imgR);
            vizG.SetPicture(imgG);
            vizB.SetPicture(imgB);
            vizY.SetPicture(imgY);
        }