Beispiel #1
0
        private void divide_Click(object sender, EventArgs e)
        {
            int val = Convert.ToInt32(numericUpDown1.Value);

            //   ConvolutionKernelF kern = new ConvolutionKernelF(new float[,] { { 0, -1, 0 }, { 0, -1, 0 }, {0, -1, 0}  });
            // clone = clone.Convolution(kern).Convert<Rgb,byte>();
            imagen.Divide(val);
            Image <Rgb, byte> redImg2;  // = new Image<Rgb, Byte>(lastBitMap);

            redImg2 = imagen.Divs[val]; //.Convolution(kern).Convert<Rgb,byte>();

            lastBitMap = redImg2.Bitmap;

            segmentBox.Image = lastBitMap;
        }