I have 3D white blobs properly labeled using -label_fg. How do I get the centroid coordinates (x,y,z) of each blob (connected component) using -barycenter? I have done ‘gmic slices* -append z -label_fg -barycenter’ but I think I am only getting one centroid of the first image in the slices* sequence, see output below. Is that expected?
(…)
[gmic]-101./ Append images [0,1,2,(…),98,99,100] along the ‘z’-axis, with alignment 0.
[gmic]-1./ Label foreground connected components on image [1], with tolerance 0 and low connectivity.
[gmic]-1./ Display image [0] = ‘slice.3CRM.000.norm.spots.pgm’.
[0] = ‘slice.3CRM.000.norm.spots.pgm’:
size = (2048,2048,101,1) [1616 Mio of floats].
data = (0,0,0,0,0,0,0,0,0,0,0,0,(…),0,0,0,0,0,0,0,0,0,0,0,0).
min = 0, max = 7392, mean = 3.61601, std = 130.83, coords_min = (0,0,0,0), coords_max = (1051,1940,95,0).
– Alex