Beispiel #1
0
        private void fromLabelsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null)
            {
                return;
            }

            //copy Undo Image
            imgUndo = img.Copy();
            OpenFileDialog openMask = new OpenFileDialog();

            if (openMask.ShowDialog() == DialogResult.OK)
            {
                Image <Gray, byte> mask = new Image <Gray, byte>(openMask.FileName);

                Image <Gray, int> imgFinal = ImageClass.GetWatershedFromLabels(img, mask);
                ShowIMG.ShowIMGStatic(img, imgFinal);
            }
        }