neuralib.segmentation.cellpose.core.AbstractCellPoseOption
- class neuralib.segmentation.cellpose.core.AbstractCellPoseOption[source]
Bases:
AbstractSegmentationOption- __init__()
Methods
__init__()eval()eval the model in single file or batch files, and save the results
foreach_normalize_image()Normalize the image in batch mode
foreach_raw_image()Load image from a directory and convert to grayscale
ij_roi_output(filepath)Get imageJ/Fiji
.roioutput save pathAttributeError: 'MainW' object has no attribute 'load_3D'.
napari viewer
main([args, parse_only, system_exit])parsing the commandline input args and call
run().new_parser(**kwargs)create an
ArgumentParser.normalize_image()Normalize the image
raw_image()Load image from file and convert to grayscale
run()called after
main()seg_output(filepath)Get segmented output save path
Attributes
parser description.
EPILOGparser epilog.
EX_GROUP_SOURCEUSAGEparser usage.
batch_modeFlag batch mode
launch cellpose gui for the analyzed result
nuclear channel
channel for segmentation default:{'none': -1, 'gray': 0, 'red': 1, 'green': 2, 'blue': 3}
diameter for each neuron (number of each pixel)
directoryimages directory for batch processing
directory_suffixsuffix in batch mode
fileimage file path
file_modeFlag file mode
force_re_evalforce re-evaluate the result
which pretrained model
napari_viewview in napari
no_normalizeNOT DO Percentile-based image normalization for eval
save_ij_roiif save also the imageJ/Fiji compatible .roi file
- DESCRIPTION: str = 'ABC for GUI Cellpose'
parser description. Could be override as a method if its content is dynamic-generated.
- model: Literal['cyto', 'cyto2', 'cyto3']
which pretrained model
- chan_seg: int
channel for segmentation default:{‘none’: -1, ‘gray’: 0, ‘red’: 1, ‘green’: 2, ‘blue’: 3}
- chan_nuclear: int
nuclear channel
- diameter: int
diameter for each neuron (number of each pixel)
- cellpose_view: bool
launch cellpose gui for the analyzed result