Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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 10

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 10

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 10

"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 10



"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 10

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 10

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 10

"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 10

"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 10

"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?

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

From: Tolga Kilinc

Date: 20 Aug, 2013 14:20:32

Message: 10 of 10

> 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?

I also have the same problem on windows 7 + Matlab 2013a 64 bit.
The error message is:

Invalid MEX-file - 'C:\program Files\MATLAB\MATLAB Compiler Runtime\v81\mcr\toolbox\matlab\imagesci\private\rtifc.mexw64': The specified module could not be found.
Error in readtif (line 49)
Error in imread (line 416)
Error in myownfunction (line 22)
Unable to print provided exception
Caused by:
Errors occured while loading the Settings files.
Details: C:\program Files\MATLAB\MATLAB Compiler Runtime\v81\toolbox\matlab\matlab.settings Internal Error: failed to find SAX plugin.
There is no Settings file associated with this product node: matlab. The settings files may be deleted after matlab started up. Please restart matlab to fully solve this issue.

--> I restarted (the machine and) matlab but no use. The settings file exist at the specified path. Please provide solution about this issue. Thanks..

Tags for this Thread

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.

Contact us