pycroglia.ui.widgets.segmentation package

Subpackages

Submodules

class pycroglia.ui.widgets.segmentation.results.SegmentationResults(file_path, img)[source]

Bases: object

Data class containing the results of cell segmentation for a single image.

Stores the file path and the labeled cells resulting from the segmentation process. Used to pass segmentation results between workflow steps.

Parameters:
file_path

Path to the original image file that was segmented.

Type:

str

img

The labeled cells object containing segmentation results.

Type:

LabeledCells

as_dict()[source]

Convert the segmentation results to a dictionary representation.

Returns:

Dictionary containing file_path and img as key-value pairs.

Return type:

dict

file_path: str
img: LabeledCells

Module contents