コード例 #1
0
 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()
コード例 #2
0
 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()
コード例 #3
0
ファイル: run.py プロジェクト: nkeim/pimsviewer
try:
    from nd2reader import ND2Reader
except ImportError(ND2Reader):
    pass

from pimsviewer import Viewer

viewer = Viewer()
viewer.show()
コード例 #4
0
 def test_viewer_3d_multichannel(self):
     viewer = Viewer(RandomReader(shape=(3, 10, 128, 128)))
     viewer.show()
コード例 #5
0
 def test_viewer_3d_rgb(self):
     viewer = Viewer(RandomReader(shape=(10, 128, 128, 3)))
     viewer.show()
コード例 #6
0
 def test_viewer_2d(self):
     viewer = Viewer(RandomReader(shape=(128, 128)))
     viewer.show()
コード例 #7
0
 def test_viewer_noreader(self):
     viewer = Viewer()
     viewer.show()
コード例 #8
0
 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()