C# Class Accord.Imaging.Filters.BaseInPlaceFilter2

Base class for filters, which operate with two images of the same size and format and may be applied directly to the source image.

The abstract class is the base class for all filters, which can be applied to an image producing new image as a result of image processing or applied directly to the source image without changing its size and pixel format.

The base class is aimed for such type of filters, which require additional image to process the source image. The additional image is set by OverlayImage or UnmanagedOverlayImage property and must have the same size and pixel format as source image. See documentation of particular inherited class for information about overlay image purpose.

Inheritance: BaseInPlaceFilter
Mostra file Open project: accord-net/framework

Protected Methods

Method Description
BaseInPlaceFilter2 ( ) : System

Initializes a new instance of the BaseInPlaceFilter2 class.

BaseInPlaceFilter2 ( Bitmap overlayImage ) : System

Initializes a new instance of the BaseInPlaceFilter2 class.

BaseInPlaceFilter2 ( UnmanagedImage unmanagedOverlayImage ) : System

Initializes a new instance of the BaseInPlaceFilter2 class.

ProcessFilter ( UnmanagedImage image ) : void

Process the filter on the specified image.

ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void

Process the filter on the specified image.

Overlay image size and pixel format is checked by this base class, before passing execution to inherited class.

Method Details

BaseInPlaceFilter2() protected method

Initializes a new instance of the BaseInPlaceFilter2 class.
protected BaseInPlaceFilter2 ( ) : System
return System

BaseInPlaceFilter2() protected method

Initializes a new instance of the BaseInPlaceFilter2 class.
protected BaseInPlaceFilter2 ( Bitmap overlayImage ) : System
overlayImage System.Drawing.Bitmap Overlay image.
return System

BaseInPlaceFilter2() protected method

Initializes a new instance of the BaseInPlaceFilter2 class.
protected BaseInPlaceFilter2 ( UnmanagedImage unmanagedOverlayImage ) : System
unmanagedOverlayImage UnmanagedImage Unmanaged overlay image.
return System

ProcessFilter() protected method

Process the filter on the specified image.
Source and overlay images have different pixel formats and/or size. Overlay image is not set.
protected ProcessFilter ( UnmanagedImage image ) : void
image UnmanagedImage Source image data.
return void

ProcessFilter() protected abstract method

Process the filter on the specified image.

Overlay image size and pixel format is checked by this base class, before passing execution to inherited class.

protected abstract ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void
image UnmanagedImage Source image data.
overlay UnmanagedImage Overlay image data.
return void