livecellx.core.sc_seg_operator.ScSegOperator
- class livecellx.core.sc_seg_operator.ScSegOperator(sc, viewer, shape_layer=None, face_color=(0, 0, 1, 1), magicgui_container=None, csn_model=None, create_sc_layer=True, sct_observers=None)[source]
A class for performing segmentation on single cell images.
- viewer
The napari viewer.
- Type:
- sc
The single cell static object.
- Type:
- shape_layer
The napari shape layer for displaying the segmentation.
- Type:
- Parameters:
viewer (napari.Viewer) – The napari viewer.
sc (SingleCellStatic) – The single cell static object.
Methods
close
()correct_segment
(model[, create_ou_input_kwargs])create_sc_layer
([name, contour_sample_num])csn_correct_seg_callback
([padding_pixels, ...])filter_cells_by_size_callback
(min_size, max_size)load_default_csn_model
(path[, cuda, has_aux])replace_sc_contour
(contour[, ...])resample_contour
(contour[, sample_num, ...])resample_contours_callback
(sample_num)save_seg_callback
([clip])Save the segmentation to the single cell object.
update_shape_layer_by_sc
([contour_sample_num])Attributes