pycroglia.ui.widgets.common package

Subpackages

Submodules

class pycroglia.ui.widgets.common.results.ImgWithPathResults(file_path, img, cells_masks, segmented_cell_indices=None, selected_cell_indices=None, rejected_cell_indices=None, gray_filter_value=None, min_size=None, erosion_radius=None)[source]

Bases: object

Container for an image together with its source file path.

This simple data container is used to pass image data and the originating file path between UI components.

Parameters:
file_path

Path to the image file.

Type:

str

img

Image array (numpy) associated with the file.

Type:

NDArray

cells_masks

List of individual cell masks.

Type:

List[NDArray]

segmented_cell_indices

All cell indices from segmentation.

Type:

Optional[List[int]]

final_cell_indices

Cell indices not rejected after selection.

Type:

Optional[List[int]]

gray_filter_value

Gray filter threshold used.

Type:

Optional[float]

min_size

Minimum size for small object removal.

Type:

Optional[int]

erosion_radius

Erosion footprint radius.

Type:

Optional[int]

cells_masks: List[ndarray[tuple[Any, ...], dtype[_ScalarT]]]
erosion_radius: int | None = None
file_path: str
gray_filter_value: float | None = None
img: ndarray[tuple[Any, ...], dtype[_ScalarT]]
min_size: int | None = None
rejected_cell_indices: List[int] | None = None
segmented_cell_indices: List[int] | None = None
selected_cell_indices: List[int] | None = None

Module contents