public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Dilation dilation = new Dilation(); Erosion erosion = new Erosion(); Subtraction subtraction = new Subtraction(dilation.processImage(sourceImage, worker)); return(subtraction.processImage(erosion.processImage(sourceImage, worker), worker)); }
public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Opening opening; if (this.kernel == null) { opening = new Opening(); } else { opening = new Opening(this.kernel); } Subtraction subtraction = new Subtraction(sourceImage); return(subtraction.processImage(opening.processImage(sourceImage, worker), worker)); }
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)); }