openlifu.seg.seg_method.SegmentationMethod

class openlifu.seg.seg_method.SegmentationMethod(materials: "Annotated[dict[str, Material], OpenLIFUFieldData('Segmentation materials', 'Dictionary mapping of label names to material definitions used during segmentation')]" = <factory>, ref_material: "Annotated[str, OpenLIFUFieldData('Reference material', 'Reference material ID to use')]" = 'water')[source]

Bases: ABC

materials: Annotated[dict[str, Material], OpenLIFUFieldData(name='Segmentation materials', description='Dictionary mapping of label names to material definitions used during segmentation')]

Dictionary mapping of label names to material definitions used during segmentation

ref_material: Annotated[str, OpenLIFUFieldData(name='Reference material', description='Reference material ID to use')] = 'water'

Reference material ID to use

abstractmethod to_table() DataFrame[source]

Get a table of the segmentation method parameters

Returns:

Pandas DataFrame of the segmentation method parameters