btrack.utils.segmentation_to_objects
fails if you are trying to measure an intensity_image
from a single segment
#361
Labels
I have some images where the associated segmentation may only feature one single segment/object in a frame. I need to extract the
intensity_image
as a part of theproperties
parameter ofsegmentation_to_objects
so that I can do some extra measurements before removing this property from all the objects prior to tracking. However, when iterating over all my frames I noticed thatsegmentation_to_objects
fails on the frames where there is just a single mask/segment. Here's the full error message:I think it might be important to note that this is specific to the
intensity_image
parameter and that if I remove that property it can still manage the non-scalarmean_intensity
parameter.Setup:
btrack.SystemInformation()
output:The text was updated successfully, but these errors were encountered: