Click or drag to resize
Accord.NET (logo)

BaseFilterApply Method (UnmanagedImage, UnmanagedImage)

Apply filter to an image in unmanaged memory.

Namespace:  Accord.Imaging.Filters
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
public void Apply(
	UnmanagedImage sourceImage,
	UnmanagedImage destinationImage
)
Request Example View Source

Parameters

sourceImage
Type: Accord.ImagingUnmanagedImage
Source image in unmanaged memory to apply filter to.
destinationImage
Type: Accord.ImagingUnmanagedImage
Destination image in unmanaged memory to put result into.

Implements

IFilterApply(UnmanagedImage, UnmanagedImage)
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionUnsupported pixel format of the source image.
InvalidImagePropertiesExceptionIncorrect destination pixel format.
InvalidImagePropertiesExceptionDestination image has wrong width and/or height.
Remarks

The method keeps the source image unchanged and puts result of image processing into destination image.

Note Note
The destination image must have the same width and height as source image. Also destination image must have pixel format, which is expected by particular filter (see FormatTranslations property for information about pixel format conversions).

See Also