neuralib.segmentation.cellpose.run_api.CellPoseAPIOption
- class neuralib.segmentation.cellpose.run_api.CellPoseAPIOption[source]
Bases:
AbstractCellPoseOption- __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 pathlaunch_cellpose_gui()AttributeError: 'MainW' object has no attribute 'load_3D'.
launch_napari()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
cellpose_viewlaunch cellpose gui for the analyzed result
chan_nuclearnuclear channel
chan_segchannel for segmentation default:{'none': -1, 'gray': 0, 'red': 1, 'green': 2, 'blue': 3}
diameterdiameter 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
modelwhich 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 = 'run cell pose for directly call the api'
parser description. Could be override as a method if its content is dynamic-generated.
- RESTORE_TYPE: ClassVar[str] = 'denoise_cyto3'
- RESTORE_RATIO: ClassVar[float] = 1.0