navigate.model.features.restful_features.IlastikSegmentation
- class navigate.model.features.restful_features.IlastikSegmentation(model, microscope_name='Nanoscale', zoom_value='N/A')
Bases:
FeatureBaseIlastik segmentation class.
Uses Ilastik REST API to perform segmentation in a separate process.
- __init__(model, microscope_name='Nanoscale', zoom_value='N/A')
Initialize Ilastik segmentation class.
- Parameters:
model (Model) – Model object
Methods
__init__(model[, microscope_name, zoom_value])Initialize Ilastik segmentation class.
data_func(frame_ids)Perform Ilastik segmentation.
init_func(*args)Initialize Ilastik segmentation.
mark_position(mask)Mark position based on the segmentation mask.
Update Ilastik segmentation settings.
Attributes
- data_func(frame_ids)
Perform Ilastik segmentation.
- Parameters:
frame_ids (list) – list of frame ids
- init_func(*args)
Initialize Ilastik segmentation.
- Parameters:
args (list) – list of arguments
- mark_position(mask)
Mark position based on the segmentation mask.
- Parameters:
mask (numpy.ndarray) – segmentation mask
- update_setting()
Update Ilastik segmentation settings.
- config_table
configuration table
- Type:
dict
- high_res_microscope_name
high resolution microscope name
- Type:
str
- high_res_zoom_value
zoom value
- Type:
str
- model
Model object
- Type:
navigate.model.Model
- parameter_schema = {'microscope_name': SettingSpec(value_type=<class 'str'>, default='Nanoscale', label='Microscope', help_text='High-resolution microscope used after segmentation.', choices=None, choice_values=None, minimum=None, exclusive_minimum=None, maximum=None, step=None, required=True, dynamic_source='microscopes', depends_on=None), 'zoom_value': SettingSpec(value_type=<class 'str'>, default='N/A', label='Zoom', help_text='Zoom value for high-resolution follow-up imaging.', choices=None, choice_values=None, minimum=None, exclusive_minimum=None, maximum=None, step=None, required=True, dynamic_source='zoom_values', depends_on='microscope_name')}
- pieces_num
number of pieces
- Type:
int
- pieces_size
size of pieces
- Type:
int
- project_file
project file for Ilastik segmentation
- Type:
str
- resolution
resolution of the current microscope
- Type:
str
- service_url
url of the service
- Type:
str
- zoom
zoom of the current microscope
- Type:
str