MATLAB: How to compute centroidal distances

centroidal distancesImage Processing Toolbox

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

  • I assume you mean regionprops(BW, I ,'WeightedCentroid') ? You need an intensity image I, to invoke that option.