Click or drag to resize
Accord.NET (logo)

ReplaceChannelProcessFilter Method

Process the filter on the specified image.

Namespace:  Accord.Imaging.Filters
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
protected override void ProcessFilter(
	UnmanagedImage image,
	Rectangle rect
)
Request Example View Source

Parameters

image
Type: Accord.ImagingUnmanagedImage
Source image data.
rect
Type: System.DrawingRectangle
Image rectangle for processing by the filter.
Exceptions
ExceptionCondition
NullReferenceExceptionChannel image was not specified.
InvalidImagePropertiesExceptionChannel image size does not match source image size.
InvalidImagePropertiesExceptionChannel image's format does not correspond to format of the source image.
InvalidImagePropertiesExceptionCan not replace alpha channel of none ARGB image. The exception is throw, when alpha channel is requested to be replaced in RGB image.
See Also