ImgMajorityFilter

Top  Previous  Next

Prototype

 

ImgMajorityFilter(intImageHandle, intWidth, intHeight)

 

Description

 

Apply a majority filter to a bitonal image. Each pixel will be converted in the color more frequent in the analyzed window.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

intWidth: the width of the filter.

 

intHeight: the height of the filter.

 

Returned value

 

None.

 

Notes

 

This filter works only on b&w images.

 

Example

 

// Use majority filter

ImgMajorityFilter(_CurrentImage, 3, 3);