def test_available(self):
     assert 'qt' in io.plugins()
     assert 'test' in io.plugins(loaded=True)
 def test_available(self):
     assert 'qt' in io.plugins()
     assert 'test' in io.plugins(loaded=True)
Beispiel #3
0
 def test_available(self):
     assert "qt" in io.plugins()
     assert "test" in io.plugins(loaded=True)
Beispiel #4
0
            
        def __call__(self, f):
            if self.mode != "I;16":
                return im_io.imread(f).astype(np.int16)
            else:
                im = Image.open(f)
                imageList = list(im.getdata())
                sizeX, sizeY = im.size
                return np.asanyarray(imageList).reshape(sizeY, sizeX)

    isScikits = True
except:
    isScikits = False

if isScikits:
    plugins = im_io.plugins()
    keys = plugins.keys()
    #mySeq = ['test','pil', 'matplotlib', 'qt']
    #mySeq = [pl for pl in plugins.keys() if pl in mySeq]
    try:
        im_io.use_plugin('pil', 'imread')
    except:
        print("No plugin available between %s" % str(mySeq))
else:
    print "Scikits.image not available"


filters = {'gauss': nd.gaussian_filter, 'fouriergauss': nd.fourier_gaussian, \
           'median': nd.median_filter, 'wiener': signal.wiener}

if isTv_denoise:
Beispiel #5
0
from skimage import io
#from skimage import data_dir
#import numpy as np

im1 = io.imread('/home/octavian/github/lojux/imgs-input/p-j.jpg')
print 'im1: ', im1
print io.plugins()

#ic = io.ImageCollection('/home/octavian/github/lojux/imgs-input/*')
#print 'ic: ', ic
#print('length: ', len(ic))
#print('ic[0]: ', ic[0])
#print('shape: ', ic[0].shape)