ImageGear for .NET
Convolve Method
See Also  Send Feedback
ImageGear21.Processing.Advanced Assembly > ImageGear.FreqIP Namespace > ImGearFrequencyProcessing Class : Convolve Method




page
ImageGear.Core.ImGearRasterPage class object to be processed.
matrix
Array of kernel elements to convolve with.
matrixWidth
Width of kernel matrix.
matrixHeight
Height of kernel matrix.
normalizer
Normalizer of the result.
addResultToOriginalPixels
Whether to add the result of the convolution to the original pixel values, or replace the original pixel values.

Glossary Item Box

Convolves an image with the given kernel matrix.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

page
ImageGear.Core.ImGearRasterPage class object to be processed.
matrix
Array of kernel elements to convolve with.
matrixWidth
Width of kernel matrix.
matrixHeight
Height of kernel matrix.
normalizer
Normalizer of the result.
addResultToOriginalPixels
Whether to add the result of the convolution to the original pixel values, or replace the original pixel values.

Remarks

This method convolves an image with the given kernel matrix. The convolution is implemented using FFT, based on the Convolution Theorem, which provides improved performance for larger kernel matrix.

The result of the convolution is multiplied by normalizer to scale the data. For kernels that sum to zero, the normalizer is usually set to 1.0.

Before using this method, like other frequency processing methods, InitializeFFTW method must be called first to initialize the support for FFTW.

Can be applied only to 8, 16, or 32bit grayscale images with one channel.

ImGearFrequencyProcessingVerifier.CanApplyConvolve method can be called to check whether the operation can be performed or not.

See Also

©2013. Accusoft Corporation. All Rights Reserved.