Click or drag to resize
Accord.NET (logo)

FiltersSequenceApply 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
ApplicationExceptionNo filters were added into the filters' sequence.
Remarks

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

Note Note
The destination image must have width, height and pixel format as it is expected by the final filter in the sequence.

See Also