PyNutil.ImageSeries#
- class PyNutil.ImageSeries(sections=<factory>, pixel_id=<factory>, segmentation_format='binary')[source]#
An ordered collection of
Sectionobjects.Construct this directly when you want to supply custom image data, or use
read_segmentation_dir()/read_image_dir()to build one from a folder of image files.- Parameters:
sections (
Dict[int,Section]) – Dictionary mappingsection_numbertoSectionobjects.pixel_id (
object) – RGB value (or label) identifying the segmented class of interest. Set byread_segmentation_dir()and consumed byseg_to_coords().segmentation_format (
str) – Name of the segmentation adapter to use (e.g."binary"or"cellpose"). Set byread_segmentation_dir()and consumed byseg_to_coords().
- property filenames: List[str]#
Display filenames for all sections.