plugin freeimage vs gdal on 0.5dev

jip jeanpatrick.pommier at gmail.com
Thu Dec 22 08:51:18 EST 2011


Dear all,
If I try to load a 12bits TIF image:
sk.io.use_plugin('freeimage', 'imread')
sk.io.use_plugin('matplotlib', 'imshow')
dapi=io.imread(path+CC+im)

I have the following message:
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Traceback (most recent call last):
  File "/home/claire/Applications/ProjetPython/projet particule et
objet/Nuclei/QuantSpots-skimage.py", line 49, in <module>
    sk.io.use_plugin('freeimage', 'imread')
  File "/usr/local/lib/python2.6/dist-packages/scikits_image-0.5dev-
py2.6-linux-i686.egg/skimage/io/_plugins/plugin.py", line 128, in use
    _load(name)
  File "/usr/local/lib/python2.6/dist-packages/scikits_image-0.5dev-
py2.6-linux-i686.egg/skimage/io/_plugins/plugin.py", line 190, in
_load
    fromlist=[modname])
  File "/usr/local/lib/python2.6/dist-packages/scikits_image-0.5dev-
py2.6-linux-i686.egg/skimage/io/_plugins/freeimage_plugin.py", line 6,
in <module>
    from numpy.compat import asbytes
ImportError: No module named compat

What is that compat module? I have numpy 1.30 installed.

Anyway,I can load the image with gdal  (sk.io.use_plugin('gdal',
'imread') with some warnings:
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Warning 1: TIFFReadDirectory:Unknown field with tag 34959 (0x888f)
encountered
Warning 1: TIFFReadDirectory:Unknown field with tag 34960 (0x8890)
encountered
Warning 1: TIFFReadDirectory:Unknown field with tag 34959 (0x888f)
encountered
Warning 1: TIFFReadDirectory:Unknown field with tag 34960 (0x8890)
encountered

best regards
Jean-Patrick



More information about the scikit-image mailing list