imAnalyzeFindRegions

Find white regions in binary image. \n * Result is IM_GRAY/IM_USHORT type. Regions can be 4 connected or 8 connected. \n * Returns the number of regions found. Background is marked as 0. \n * Regions touching the border are considered only if touch_border=1. * Not using OpenMP when enabled. * * \verbatim im.AnalyzeFindRegions(src_image: imImage, dst_image: imImage, connect: number, touch_border: boolean) -> count: number [in Lua 5] \endverbatim * \verbatim im.AnalyzeFindRegionsNew(image: imImage, connect: number, touch_border: boolean) -> count: number, new_image: imImage [in Lua 5] \endverbatim * \ingroup analyze

extern (C) @safe nothrow
int
imAnalyzeFindRegions

Meta