コード例 #1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Filters filter1 = new Dilation(mask);
            Bitmap  result  = filter1.processImage(sourceImage, worker);
            Filters filter2 = new Erosion(mask);

            result = filter2.processImage(result, worker);
            return(result);
        }
コード例 #2
0
        private void расширениеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new Dilation(structElem);

            backgroundWorker1.RunWorkerAsync(filter);
        }