Description

Applies a convolution filter to an image.

Return Type

A McImage object.  

The resulting McImage.

Syntax

object.Convolve ([lPasses], [vKernel], [vSourceImg])

The Convolve Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McFilter.
lPassesOptional. A Long value.

Number of times to apply the filter. If not given or negative then the Passes property is used. Unless you have changed it, Passes will be 1.

vKernelOptional. A Variant value.

Optional McKernel. If omitted, the Kernel property is used instead.

vSourceImgOptional. A Variant value.

Optional input IMcImage.

Remarks

The effect on the image depends on the filter kernel(s) provided.

Exceptions

The exception mceINVALIDARG (E_INVALIDARG) will be thrown if one of the parameters is invalid.