rockverse.dect.DECTGroup.create_segmentation#

DECTGroup.create_segmentation(fill_value=0, dtype='u1', overwrite=False, field_name='segmentation', description='Segmentation voxel image', **kwargs)[source]#

Create segmentation voxel image based on the lowECT array. This function enforces unsigned integer dtype and the path ‘/segmentation’ within the group store.

Parameters:
  • fill_value (bool, optional) – The value to fill the mask with.

  • dtype (Numpy datatype) – Array data type. Must be unsigned integer.

  • overwrite (bool, optional) – If True, overwrite existing segmentation.

  • **kwargs – Additional keyword arguments for the rockverse.voxel_image.full_like function used to create the segmentation array.