I have a segmented binary image. I need to calculate only one centroid for the entire image ( considering only the white area), get the location and plot the centroid. I am struggling as the image is discontiguous and ending up with many centroids. I have got one centroid but sometimes its locate in black area. So bit confused whether it is right or not. I have attached the image. Assuming the centre should be in a white area of the image.
Any help will be much appreciated!
Best Answer