centroids function

Centroid(s) of a vector or clumps in a raster