ImgThreshold

Top  Previous  Next

Prototype

 

ImgThreshold (intImageHandle, intThreshold)

 

Description

 

Thresholds a grayscale image to create a monochrome image.  All grayscale pixel values under the threshold level are converted to black while all the pixels above are converted to white.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

intThreshold: threshold value in the range 0 - 255.

 

Returned value

 

None.

 

Note

 

See ImgAutoThreshold, ImgAdvancedThreshold and ImgDynamicThreshold for alternative threshold methods.

 

 

Example

 

// Applies simple thresholding using 127 as the value

ImgThreshold(_CurrentImage,127);