def magic_projection(): return magicgui( _projection, auto_call=True, layout='vertical', input1={'label': 'Image'}, operation_name={ 'label': 'Operation', 'choices': cle.operations( must_have_categories=['projection', 'in assistant']).keys() })
def magic_combine(): return magicgui(_combine, auto_call=True, layout='vertical', input1={'label': 'Image 1'}, input2={'label': 'Image 2'}, operation_name={ 'label': 'Operation', 'choices': cle.operations( must_have_categories=['combine', 'in assistant'], must_not_have_categories=['map']).keys() })
def magic_label_measurements(): return magicgui( _label_measurements, auto_call=True, layout='vertical', input1={'label': 'Image'}, input2={'label': 'Labels'}, operation_name={ 'label': 'Operation', 'choices': cle.operations( must_have_categories=['combine', 'map', 'in assistant' ]).keys() })
def magic_label(): return magicgui( _label, auto_call=True, layout='vertical', input1={'label': 'Image'}, operation_name={ 'label': 'Operation', 'choices': cle.operations( must_have_categories=['label', 'in assistant']).keys() }, a=plus_minus_1k, b=plus_minus_1k)
def magic_label_processing(): return magicgui( _label_processing, auto_call=True, layout='vertical', input1={'label': 'Labels'}, operation_name={ 'label': 'Operation', 'choices': cle.operations( must_have_categories=['label processing', 'in assistant' ]).keys() }, min=plus_minus_1k, max=plus_minus_1k)
def magic_binarize(): return magicgui(_binarize, auto_call=True, layout='vertical', input1={'label': 'Image'}, operation_name={ 'label': 'Operation', 'choices': cle.operations( must_have_categories=['binarize', 'in assistant'], must_not_have_categories=['combine']).keys() }, radius_x=plus_minus_1k, radius_y=plus_minus_1k, radius_z=plus_minus_1k)
def magic_denoise(): return magicgui( _denoise, auto_call=True, layout='vertical', input1={'label': 'Image'}, operation_name={ 'label': 'Operation', 'choices': list( cle.operations( must_have_categories=['filter', 'denoise', 'in assistant'], must_not_have_categories=['combine']).keys()) }, x=plus_minus_1k, y=plus_minus_1k, z=plus_minus_1k)
def magic_background_removal(): return magicgui(_background_removal, auto_call=True, layout='vertical', input1={'label': 'Image'}, operation_name={ 'label': 'Operation', 'choices': cle.operations(must_have_categories=[ 'filter', 'background removal', 'in assistant' ], must_not_have_categories=['combine' ]).keys() }, x=plus_minus_1k, y=plus_minus_1k, z=plus_minus_1k)
def magic_map(): return magicgui(_map, auto_call=True, layout='vertical', input1={'label': 'Labels'}, operation_name={ 'label': 'Operation', 'choices': cle.operations(must_have_categories=[ 'label measurement', 'map', 'in assistant' ], must_not_have_categories=["combine" ]).keys() }, n={ 'min': 0, 'max': 1000 })
import pyclesperanto_prototype as cle dict = cle.operations(must_have_categories=['background removal']) print(dict)
def test_operations_search(): import pyclesperanto_prototype as cle names = cle.operations("map") assert len(names) > 0
def test_operations_search_not(): import pyclesperanto_prototype as cle names = cle.operations(must_not_have_categories="map") assert len(names) > 0