コード例 #1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Closing closing;

            if (this.kernel == null)
            {
                closing = new Closing();
            }
            else
            {
                closing = new Closing(this.kernel);
            }
            Subtraction subtraction = new Subtraction(closing.processImage(sourceImage, worker));

            return(subtraction.processImage(sourceImage, worker));
        }
コード例 #2
0
        private void couToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new Closing();

            backgroundWorker1.RunWorkerAsync(filter);
        }