def test_viewer_processplugin_multiple(self): AddNoise = ProcessPlugin(add_noise, 'Add noise', dock='right') + \ Slider('noise_level', 0, 100, 0, orientation='vertical') Reduce = ProcessPlugin(make_black_y, 'Make black', dock='left') + \ Slider('x', 0, 128, 0, value_type='int', orientation='vertical') viewer = Viewer(RandomReader(shape=(128, 128, 3))) + AddNoise + Reduce viewer.show()
def test_viewer_interactive_plotting(self): Locate = PlottingPlugin(tp_locate, 'Locate', dock='right') + \ Slider('radius', 1, 20, 7, value_type='int', orientation='vertical') + \ Slider('separation', 1, 20, 7, value_type='float', orientation='vertical') + \ Slider('noise_size', 1, 20, 1, value_type='int', orientation='vertical') + \ Slider('minmass', 1, 10000, 100, value_type='int', orientation='vertical') viewer = Viewer(RandomReader(shape=(128, 128))) + Locate viewer.show()
try: from nd2reader import ND2Reader except ImportError(ND2Reader): pass from pimsviewer import Viewer viewer = Viewer() viewer.show()
def test_viewer_3d_multichannel(self): viewer = Viewer(RandomReader(shape=(3, 10, 128, 128))) viewer.show()
def test_viewer_3d_rgb(self): viewer = Viewer(RandomReader(shape=(10, 128, 128, 3))) viewer.show()
def test_viewer_2d(self): viewer = Viewer(RandomReader(shape=(128, 128))) viewer.show()
def test_viewer_noreader(self): viewer = Viewer() viewer.show()
def test_viewer_processplugin(self): AddNoise = ProcessPlugin(add_noise, 'Add noise', dock='right') + \ Slider('noise_level', 0, 100, 0, orientation='vertical') viewer = Viewer(RandomReader()) + AddNoise viewer.show()