Enable generate_dummy_segmentation_extractor
to generate voxel masks
#213
Labels
enhancement
New feature or request
We should add the capability for the dummy segmentation extractor to generate voxel masks. Problem right now is that
SegmentationExtractor
is based on image masks asget_roi_pixel_masks
assumes that_image_masks
exists already:roiextractors/src/roiextractors/segmentationextractor.py
Line 148 in 0d50073
We should probably modify this so
get_roi_pixel_masks
first tries to call_pixel_masks
before doing trying to get them from _image_masks.. This is important in its own right as it will allow us to have segmentation extractors that can return pixel masks without us requiring to define image_masks as a workaround. Moreover, we will be able to add a flag togenerate_dummy_segmentation_extractor
and just build a pixel_masks with voxel_mask or pixel_mask qualities over there.The text was updated successfully, but these errors were encountered: