Example #1
0
        protected override Bitmap preprocessImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Filters filter;

            filter         = new DilationFilter();
            m_closed_image = new Bitmap(filter.processImage(sourceImage));
            filter         = new ErosionFilter();
            m_closed_image = new Bitmap(filter.processImage(sourceImage));
            return(sourceImage);
        }
Example #2
0
        private void сужениеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new ErosionFilter(GetKernel());

            backgroundWorker1.RunWorkerAsync(filter);
        }