Documentation
|
|
The C++ interface for centroids. More...
| array | centroids (const array ®ions) |
The C++ interface for centroids.
The centroid of each connected component is an (x,y) coordinate that is the average of the (x,y) coordinates of all of the pixels with that label.
The input image should be a 2D, single precision floating point image where the components are numbered sequentially from 1 to N, where N is the overall number of components.
| array af::centroids | ( | const array & | regions | ) |
| [in] | regions | numbered connected components (see regions) |