Calculates the threshold level for manual threshold using the Otsu approach. \n
* Image 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. \n
* Original implementation by Flavio Szenberg.
*
* \verbatim im.ProcessOtsuThreshold(src_image: imImage, dst_image: imImage) -> level: number [in Lua 5] \endverbatim
* \verbatim im.ProcessOtsuThresholdNew(src_image: imImage) -> level: number, new_image: imImage [in Lua 5] \endverbatim
* \ingroup threshold
Calculates the threshold level for manual threshold using the Otsu approach. \n * Image 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. \n * Original implementation by Flavio Szenberg. * * \verbatim im.ProcessOtsuThreshold(src_image: imImage, dst_image: imImage) -> level: number [in Lua 5] \endverbatim * \verbatim im.ProcessOtsuThresholdNew(src_image: imImage) -> level: number, new_image: imImage [in Lua 5] \endverbatim * \ingroup threshold