I wanted to compute centroidal distances, by calculating the distance is between the geometric centroid of the segmented object and the brightness centroid of the same.

`% Is geometric centroid same as `

s = regionprops(BW,'centroid');

what is brightness centroid

## Best Answer