arboretum/io.py
def write_segmentation(self,
                           segmentation: np.ndarray,
                           obj_type='obj_type_1'):

        """ write out the segmentation to an HDF file """

        # write the segmentation out
        grp = self._hdf.create_group('segmentation')
        grp.create_dataset(f'images',
                           data=segmentation,
                           dtype='uint16',
                           compression='gzip',
                           compression_opts=7)
 write out the segmentation to an HDF file 
write out the segmentation to an HDF file
write out the segmentation to an HDF file
def write_segmentation(self,
                           segmentation: np.ndarray,
                           obj_type='obj_type_1'):
        grp = self._hdf.create_group('segmentation')
        grp.create_dataset(f'images',
                           data=segmentation,
                           dtype='uint16',
                           compression='gzip',
                           compression_opts=7)
def write_segmentation ( self , segmentation : np . ndarray , obj_type = 'obj_type_1' ) : grp = self . _hdf . create_group ( 'segmentation' ) grp . create_dataset ( f'images' , data = segmentation , dtype = 'uint16' , compression = 'gzip' , compression_opts = 7 )
write out the segmentation to an HDF file
write out the segmentation to an HDF file
""" write out the segmentation to an HDF file """ # write the segmentation out
self
segmentation
np.ndarray
obj_type