Description

Blurs or reduces noise in an image instance.

Return Type

A McImage object.  

The resulting McImage.

Syntax

object.LowPass ([lPasses], [Size], [Strength], [vSourceImg])

The LowPass Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McEnhance.
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.

SizeOptional. A Long value.

Size of convolution kernel (3, 5, or 7).

StrengthOptional. A Long value.

Strength factor (from 0 to 100).

vSourceImgOptional. A Variant value.

Optional input IMcImage.

Remarks

This filter is also known as averaging filter. It is a convolution filter. Strength is defined as a percentage of the filter effect that will be applied to the image. In mathematical terms it is: where: I(x, y) is a pixel of the original image at location (x,y), Filter[..] is the value of that same pixel to which the filter has been applied, FI(x, y) is the final value of the pixel. The case where Strength equals 100 is optimized for speed.

Exceptions

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