imAnalyzeMeasureCentroid

Calculate the centroid position of all regions. Holes are not included. \n * Source image is IM_GRAY/IM_USHORT type (the result of \ref imAnalyzeFindRegions). \n * area, cx and cy have size the number of regions. If area is NULL will be internally calculated. * * \verbatim im.AnalyzeMeasureCentroid(image: imImage, [area: table of numbers], [region_count: number]) -> cx: table of numbers, cy: table of numbers [in Lua 5] \endverbatim * The returned tables are zero indexed. * \ingroup analyze

extern (C) @safe nothrow
void
imAnalyzeMeasureCentroid
(
const(imImage)* image
,
const(int)* area
,,
float* cx
,
float* cy
)

Meta