コード例 #1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Bitmap new_src = sourceImage;
            //dilation dilat;
            //erosion eros;
            //dilat = new dilation();
            //eros = new erosion();
            opening open = new opening();

            return(substraction(new_src, open.processImage(sourceImage, worker), worker));
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: xnd-r/computer_graphics
        private void openingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new opening();

            backgroundWorker1.RunWorkerAsync(filter);
        }