Documentation
|
|
Compute the centroid of each numbered component in a label matrix. More...
Modules | |
| centroids | |
| The C++ interface for centroids. | |
Compute the centroid of each numbered component in a label matrix.
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.