imProcessPercentThreshold

Calculates the threshold level for manual threshold using a percentage of pixels * that should stay bellow the threshold. \n * Image data type can be IM_BYTE, IM_SHORT or IM_USHORT. \n * Source color space must be IM_GRAY, and target color space must be IM_BINARY. * Returns the used level. * * \verbatim im.ProcessPercentThreshold(src_image: imImage, dst_image: imImage, percent: number) -> level: number [in Lua 5] \endverbatim * \verbatim im.ProcessPercentThresholdNew(src_image: imImage, percent: number) -> level: number, new_image: imImage [in Lua 5] \endverbatim * \ingroup threshold

version(IM)
extern (C) @nogc nothrow
int
imProcessPercentThreshold

Meta