tif and colormap does not seem to work

Bertrand Roessli bertrand.roessli at psi.ch
Wed May 13 10:34:25 CDT 2009


Hello,

this code 

>> A=imread('1.tif');
>> colormap(jet);
>> image(A);
>> axis('image');

allows me to plot '1.tif' with the 'jet' colormap and to rescale the
figure in Matlab.


In Octave I get an image with a constant single color and axis('image')
does rescale the plot.


There was a warning when running the code though

octave:12> A=imread('1.tif');
warning: Magick++ warning: Magick: /home/broessli/1.tif: invalid TIFF
directory; tags are not sorted in ascending order. (TIFFReadDirectory)
reported by tiff.c:444 (TIFFWarnings)


I think this is a bug?


Thanks,

Bertrand Roessli




More information about the Bug-octave mailing list