Accord.Imaging.Filters.Closing.Apply C# (CSharp) Method

Apply() public method

Apply filter to an image.
The method keeps the source image unchanged and returns the result of image processing filter as new image.
Unsupported pixel format of the source image.
public Apply ( Bitmap image ) : Bitmap
image System.Drawing.Bitmap Source image to apply filter to.
return System.Drawing.Bitmap
        public Bitmap Apply( Bitmap image )
        {
            Bitmap tempImage = dilatation.Apply( image );
            Bitmap destImage = errosion.Apply( tempImage );

            tempImage.Dispose( );

            return destImage;
        }

Same methods

Closing::Apply ( BitmapData imageData ) : Bitmap
Closing::Apply ( UnmanagedImage image ) : UnmanagedImage
Closing::Apply ( UnmanagedImage sourceImage, UnmanagedImage destinationImage ) : void