tif and colormap does not seem to work

Bertrand Roessli bertrand.roessli at psi.ch
Thu May 14 01:40:07 CDT 2009


Sorry,

it was my mistake. 

[A,map]=imread("1.tif");
image(A);
colormap(jet(256));


works perfectly both in matlab and in octave.

Bertrand Roessli


On Wed, 2009-05-13 at 17:34 +0200, Bertrand Roessli wrote:
> 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