Hi Luis,
Thats where it fails. I tried reading 3D png and tiff using the following code and it reads as 2D image.
I installed mahotas 0.7.3 and freeimage.
********************************
import numpy as np
from scipy import ndimage
import pylab
import mahotas
from mahotas import freeimage
from mahotas import imread,imsave
img = mahotas.imread('myuchar.tiff')
print img.ndim
print img
*********************************
It gives the following:
2
[[0 0 0 ..., 0 0 0]
[0 0 0 ..., 0 0 0]
[0 0 0 ..., 0 0 0]
...,
[0 0 0 ..., 0 0 0]
[0 0 0 ..., 0 0 0]
[0 0 0 ..., 0 0 0]]
I'm unsure why it fails while reading the 3D image. Does the imread package also needs to be installed separately?
(there was a dependency issue for libwebp-dev in ubuntu 10.10, python 2.6).
Thanks,
Sundar