imAnalyzeMeasurePrincipalAxis

Calculate the principal major axis slope of all regions. \n * Source image is IM_GRAY/IM_USHORT type (the result of \ref imAnalyzeFindRegions). \n * data has size the number of regions. If area or centroid are NULL will be internally calculated. \n * Principal (major and minor) axes are defined to be those axes that pass through the * centroid, about which the moment of inertia of the region is, respectively maximal or minimal. * Partially using OpenMP when enabled. * * \verbatim im.AnalyzeMeasurePrincipalAxis(image: imImage, [area: table of numbers], [cx: table of numbers], [cy: table of numbers], [region_count: number]) -> major_slope: table of numbers, major_length: table of numbers, minor_slope: table of numbers, minor_length: table of numbers [in Lua 5] \endverbatim * The returned tables are zero indexed. * \ingroup analyze

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

Meta