Apply a manual threshold. \n
* threshold = a <= level ? 0: value \n
* Normal value is 1 but another common value is 255. Can be done in-place for IM_BYTE source. \n
* Source color space must be IM_GRAY, and target color space must be IM_BINARY.
* complex is not supported. \n
*
* \verbatim im.ProcessThreshold(src_image: imImage, dst_image: imImage, level: number, value: number) [in Lua 5] \endverbatim
* \verbatim im.ProcessThresholdNew(src_image: imImage, level: number, value: number) -> new_image: imImage [in Lua 5] \endverbatim
* \ingroup threshold
Apply a manual threshold. \n * threshold = a <= level ? 0: value \n * Normal value is 1 but another common value is 255. Can be done in-place for IM_BYTE source. \n * Source color space must be IM_GRAY, and target color space must be IM_BINARY. * complex is not supported. \n * * \verbatim im.ProcessThreshold(src_image: imImage, dst_image: imImage, level: number, value: number) [in Lua 5] \endverbatim * \verbatim im.ProcessThresholdNew(src_image: imImage, level: number, value: number) -> new_image: imImage [in Lua 5] \endverbatim * \ingroup threshold