imProcessMinMaxThreshold

Calculates the threshold level for manual threshold using (max-min)/2. \n * Returns the used level. \n * Source color space must be IM_GRAY, and target color space must be IM_BINARY. * complex is not supported. Can be done in-place for IM_BYTE source. \n * * \verbatim im.ProcessMinMaxThreshold(src_image: imImage, dst_image: imImage) -> level: number [in Lua 5] \endverbatim * \verbatim im.ProcessMinMaxThresholdNew(src_image: imImage) -> level: number, new_image: imImage [in Lua 5] \endverbatim * \ingroup threshold

extern (C) @safe nothrow
float
imProcessMinMaxThreshold

Meta