ImageGear Professional for Windows ActiveX
Convolve Method

Description:

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.

This method takes into account the ROI settings of pPage object, that are accessible via the IGPage Object.ROI property. By default ROI is set to the entire image.

Syntax:

      Convolve(pPage As IGPage, kernel As IGDataArray, kernWidth As
Long, kernHeight As Long, normaliser As Double, addToOrigin As
Boolean)

Parameters:

Name Description
pPage IGPage Object to be processed.
kernel Array of kernel elements with which to convolve.
kernWidth Width of kernel matrix.
kernHeight Height of kernel matrix.
normalizer Normalizer of kernel.
addToOrigin Whether to add the result of the convolution to the original pixel values, or replace the original pixel values.

Return Value:

None

Bits Per Pixel:

8, 16, 32-bit grayscale images with one channel

Sample:

FreqIP

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback