Finding centroids with features_segmentation

I have an imagecontainer with 2 layers: the image and a segmented image with multiple objects.

I am using to extract features from the objects in the segmented image, which works well for most parameters.

But when measuring the centroids of the objects, an array containing only [0.,0.] for each object is returned.

What am I doing wrong?