Thread Subject:
Problem with imread/rtifc after upgrade to 2012b

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Phillip

Date: 30 Jan, 2013 17:24:08

Message: 1 of 9

I have been using a function written in 2010 with no problems until today when I upgraded to 2012b (I had previously been using 2011b with no problems). I'm trying to read in a multi-page tiff using imread and get the following error:

Error using rtifc
TIFF library error: 'TIFFReadDirectory: Incorrect count for "ColorMap"; tag ignored.'.

Error in readtif (line 49)
[X, map, details] = rtifc(args);

Error in imread (line 434)
    [X, map] = feval(fmt_s.read, filename, extraArgs{:});

I'm not an expert on the tif file format so any help trying to diagnose the problem or with a work around would be greatly appreciated. Thanks.

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Yingyao

Date: 31 Jan, 2013 17:39:08

Message: 2 of 9

Installed 2012b two days ago, exactly the same error. The TIF file is fine, can be opened with other imaging software.

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Marco

Date: 3 Feb, 2013 22:40:05

Message: 3 of 9

"Yingyao " <mbrown89@gmail.com> wrote in message <keea7s$s0g$1@newscl01ah.mathworks.com>...
> Installed 2012b two days ago, exactly the same error. The TIF file is fine, can be opened with other imaging software.

Same problem with me.

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Steven_Lord

Date: 4 Feb, 2013 03:53:15

Message: 4 of 9



"Marco " <marco.yee@ryerson.ca> wrote in message
news:kemp05$hq9$1@newscl01ah.mathworks.com...
> "Yingyao " <mbrown89@gmail.com> wrote in message
> <keea7s$s0g$1@newscl01ah.mathworks.com>...
>> Installed 2012b two days ago, exactly the same error. The TIF file is
>> fine, can be opened with other imaging software.
>
> Same problem with me.

Please send the TIF file to Technical Support so they can determine if there
is a problem with the TIF reading functionality or if the file has been
written incorrectly or using a feature that is incompatible with the TIF
standard that prevents MATLAB from opening it but is compensated for by the
other software.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Phillip

Date: 11 Mar, 2013 13:42:06

Message: 5 of 9

I just saw that this problem was address in this bug report.
http://www.mathworks.com/support/bugreports/914792

I installed the work around files and it solved my problem. Thanks.

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Heng

Date: 20 Mar, 2013 09:02:06

Message: 6 of 9

I have the exactly the same problem with you. Do not have any idea...

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Heng

Date: 21 Mar, 2013 04:16:06

Message: 7 of 9

"Phillip" wrote in message <khkmve$f4a$1@newscl01ah.mathworks.com>...
> I just saw that this problem was address in this bug report.
> http://www.mathworks.com/support/bugreports/914792
>
> I installed the work around files and it solved my problem. Thanks.

After installing the patch, it can work now. But it comes with a warning:

Warning: TIFF library error: '_TIFFVSetField:
C:\Users\GH\Desktop\standard_test_images\cameraman.tif: Null count for "Tag 34022" (type 1,
writecount -3, passcount 1).'. The image data may be corrupt.

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Juke Zhang

Date: 29 Mar, 2013 08:59:06

Message: 8 of 9

"Heng" wrote in message <kie1i6$o95$1@newscl01ah.mathworks.com>...
> "Phillip" wrote in message <khkmve$f4a$1@newscl01ah.mathworks.com>...
> > I just saw that this problem was address in this bug report.
> > http://www.mathworks.com/support/bugreports/914792
> >
> > I installed the work around files and it solved my problem. Thanks.
>
> After installing the patch, it can work now. But it comes with a warning:
>
> Warning: TIFF library error: '_TIFFVSetField:
> C:\Users\GH\Desktop\standard_test_images\cameraman.tif: Null count for "Tag 34022" (type 1,
> writecount -3, passcount 1).'. The image data may be corrupt.

Thanks. I have solved my problem with your help.

Subject: Problem with imread/rtifc after upgrade to 2012b

From: Magnus

Date: 20 May, 2013 22:14:09

Message: 9 of 9

"Juke Zhang" <zhangjuke@qq.com> wrote in message <kj3l4q$lec$1@newscl01ah.mathworks.com>...
> "Heng" wrote in message <kie1i6$o95$1@newscl01ah.mathworks.com>...
> > "Phillip" wrote in message <khkmve$f4a$1@newscl01ah.mathworks.com>...
> > > I just saw that this problem was address in this bug report.
> > > http://www.mathworks.com/support/bugreports/914792
> > >
> > > I installed the work around files and it solved my problem. Thanks.
> >
> > After installing the patch, it can work now. But it comes with a warning:
> >
> > Warning: TIFF library error: '_TIFFVSetField:
> > C:\Users\GH\Desktop\standard_test_images\cameraman.tif: Null count for "Tag 34022" (type 1,
> > writecount -3, passcount 1).'. The image data may be corrupt.
>
> Thanks. I have solved my problem with your help.

i have the same problem using Matlab 2013a 64Bit on Linux. i tried to apply the workaround for 2012b but failed causing the following error:

Invalid MEX-file
'/usr/local/MATLAB/R2013a/toolbox/matlab/imagesci/private/rtifc.mexa64':
/usr/local/MATLAB/R2013a/toolbox/matlab/imagesci/private/rtifc.mexa64:
undefined symbol:
_ZN6MATLAB8imagesci5rtifc16noImageSpecifiedC1Ev

Is there a workaround for 2013a?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
2012b 80 imread ti... Juke Zhang 29 Mar, 2013 05:04:10
rtifc Phillip 30 Jan, 2013 12:24:10
readtif Phillip 30 Jan, 2013 12:24:10
imread Phillip 30 Jan, 2013 12:24:10
rssFeed for this Thread

Contact us