enum | af_rprops_t { AF_RP_Area = 0, AF_RP_Centroid = 1, AF_RP_Orientation = 2, AF_RP_AxisLengths = 4 } |
array | regions (const array &image, unsigned connectivity) |
Connected component labeling of a binary image. | |
array | areas (const array ®ions) |
Calculate area of each numbered component in regions . | |
array | centroids (const array ®ions) |
Calculate centroid of each numbered component in regions . | |
array | moments (const array ®ions, af_rprops_t property) |
Calculate property for each numbered component in regions . | |
void | moments (array &areas, array ¢roids, const array ®ions) |
Calculate both area and centroid for each numbered component in regions . | |
void | moments (array &areas, array ¢roids, array &axes, array &orientations, const array ®ions) |
Calculate various properties for each numbered component in regions . |
enum af_rprops_t |
array af::regions | ( | const array & | image, |
unsigned | connectivity | ||
) |
Connected component labeling of a binary image.
[in] | image | Binary image |
[in] | connectivity | either 4 or 8 |
array af::areas | ( | const array & | regions | ) |
Calculate area of each numbered component in regions
.
[in] | regions | numbered connected components (see regions) |
array af::centroids | ( | const array & | regions | ) |
Calculate centroid of each numbered component in regions
.
[in] | regions | numbered connected components (see regions) |
array af::moments | ( | const array & | regions, |
af_rprops_t | property | ||
) |
Calculate property
for each numbered component in regions
.
[in] | regions | numbered connected components (see regions) |
[in] | property | (see af_rprops_t), determines output size |
property
) void af::moments | ( | array & | areas, |
array & | centroids, | ||
const array & | regions | ||
) |
Calculate both area and centroid for each numbered component in regions
.
[out] | areas | (1xN vector) |
[out] | centroids | (2xN matrix) |
[in] | regions | numbered connected components (see regions) |
void af::moments | ( | array & | areas, |
array & | centroids, | ||
array & | axes, | ||
array & | orientations, | ||
const array & | regions | ||
) |
Calculate various properties for each numbered component in regions
.
[out] | areas | (1xN vector) |
[out] | centroids | (2xN matrix) |
[out] | axes | (2xN matrix) |
[out] | orientations | (1xN matrix) |
[in] | regions | numbered connected components (see regions) |