help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imread error while loading a TIFF image file


From: Przemek Klosowski
Subject: Re: imread error while loading a TIFF image file
Date: Wed, 13 Jun 2012 11:38:23 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 06/12/2012 11:02 AM, richar039 wrote:
I am dealing with a simple image process work with Octave, but I got a very
strange error when I tried to load a TIFF file (the file I attached together
with this post) by using imread, the warning and error shown as follows:

warning: Magick++ coder error: Magick: Incorrect count for "ImageWidth".
(TIFFFetchNormalTag) reported by coders/tiff.c:
610 (TIFFErrors)
error: imread: invalid image file: __magick_read__: invalid INDEX vector
...
I can successfully load this file by using imread in Matlab instead, this is
something I don't understand, anybody knows why this error happened? Thanks!

http://octave.1599824.n4.nabble.com/file/n4630702/test_1.tif test_1.tif

That file is a rather off-kilter TIFF: I haven't found any tools that read it successfully. In fact, when I read it in Matlab by doing image(imread('test_1.tif')), I just get 480x752 black pixels.

The only difference is that Matlab doesn't output any error messages, while Linux tools (ImageMagick, GIMP and firefox) complain about specific problems with the file, e.g.:

display: test_1.tif: invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/767. display: test_1.tif: wrong data type 320 for "ColorMap"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/767. display: test_1.tif: wrong data type 256 for "ImageWidth"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/767. display: test_1.tif: unknown field with tag 2176 (0x880) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/767. display: test_1.tif: unknown field with tag 832 (0x340) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/767.
...followed by many more similar errors...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]