Finding centroids with features_segmentation

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

I am using sq.im.ImageContainer.features_segmentation 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.

https://squidpy.readthedocs.io/en/stable/classes/squidpy.im.ImageContainer.features_segmentation.html

What am I doing wrong?