Class BaseUsingCopyPartialFilter
Base class for filters, which require source image backup to make them applicable to source image (or its part) directly.
Inherited Members
Namespace: AForge.Imaging.Filters
Assembly: TowseyLibrary.dll
Syntax
public abstract class BaseUsingCopyPartialFilter
Remarks
The base class is used for filters, which can not do direct manipulations with source image. To make effect of in-place filtering, these filters create a background copy of the original image (done by this base class) and then do manipulations with it putting result back to the original source image.
note
The background copy of the source image is created only in the case of in-place filtering. Otherwise background copy is not created - source image is processed and result is put to destination image.
The base class is for those filters, which support as filtering entire image, as partial filtering of specified rectangle only.
Methods
| Improve this Doc View SourceApply(Image<Rgb24>)
Apply filter to an image.
Declaration
public Image<L8> Apply(Image<Rgb24> imageData)
Parameters
Type | Name | Description |
---|---|---|
Six |
imageData | Source image to apply filter to. |
Returns
Type | Description |
---|---|
Six |
Returns filter's result obtained by applying the filter to the source image. |
Remarks
The filter accepts bitmap data as input and returns the result of image processing filter as new image. The source image data are kept unchanged.
ProcessFilter(Image<Rgb24>, Image<L8>, Rectangle)
Process the filter on the specified image.
Declaration
protected abstract void ProcessFilter(Image<Rgb24> sourceData, Image<L8> destinationData, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
Six |
sourceData | Source image data. |
Six |
destinationData | Destination image data. |
Six |
rect | Image rectangle for processing by the filter. |