コード例 #1
0
 def setUp(self):
     reset_plugins()
     # Generic image collection with images of different shapes.
     self.images = ImageCollection(self.pattern)
     # Image collection with images having shapes that match.
     self.images_matched = ImageCollection(self.pattern_matched)
     # Same images as a collection of frames
     self.frames_matched = MultiImage(self.pattern_matched)
コード例 #2
0
def imgs():
    use_plugin('pil')

    paths = [
        testing.fetch('data/multipage_rgb.tif'),
        testing.fetch('data/no_time_for_that_tiny.gif')
    ]
    imgs = [
        MultiImage(paths[0]),
        MultiImage(paths[0], conserve_memory=False),
        MultiImage(paths[1]),
        MultiImage(paths[1], conserve_memory=False),
        MultiImage(os.pathsep.join(paths))
    ]
    yield imgs

    reset_plugins()
コード例 #3
0
def imgs():
    use_plugin('pil')
    paths = [
        os.path.join(data_dir, 'multipage_rgb.tif'),
        os.path.join(data_dir, 'no_time_for_that_tiny.gif')
    ]
    imgs = [
        MultiImage(paths[0]),
        MultiImage(paths[0], conserve_memory=False),
        MultiImage(paths[1]),
        MultiImage(paths[1], conserve_memory=False),
        ImageCollection(paths[0]),
        ImageCollection(paths[1], conserve_memory=False),
        ImageCollection(os.pathsep.join(paths))
    ]
    yield imgs

    reset_plugins()
コード例 #4
0
ファイル: test_simpleitk.py プロジェクト: ahmetsina/Proje
def teardown():
    reset_plugins()
コード例 #5
0
def teardown_module(self):
    io.reset_plugins()
コード例 #6
0
def setup():
    io.reset_plugins()
コード例 #7
0
ファイル: test_plugin.py プロジェクト: yuxi5002/skimage
def teardown_module():
    io.reset_plugins()
コード例 #8
0
ファイル: test_pil.py プロジェクト: Greenwicher/scikit-image
def teardown():
    reset_plugins()
コード例 #9
0
def teardown():
    sio.reset_plugins()
コード例 #10
0
ファイル: test_fits.py プロジェクト: ahmetsina/Proje
def teardown():
    io.reset_plugins()
コード例 #11
0
 def setUp(self):
     reset_plugins()
     # Generic image collection with images of different shapes.
     self.images = ImageCollection(self.pattern)
     # Image collection with images having shapes that match.
     self.images_matched = ImageCollection(self.pattern_matched)