필터 지우기
필터 지우기

imfinfo error

조회 수: 1 (최근 30일)
Zhanhong
Zhanhong 2011년 9월 6일
I was just trying to collect some information from a tif stack file to know how many frames there are in this specific tif file named test. However there is some error I never encountered before and I can't find an answer online. so I post it here hope someone can answer it for me. Or can help me find another way to get the frame number information. When I was trying to open the same file with image processing toolbox it also encountered the same error. My image processing toolbox can open other jpg files.
Here's my test code and error.
>> t=imfinfo('test.tif')
??? Unexpected Standard exception from MEX file. What() is:invalid string position
Error in ==> imtifinfo at 57 raw_tags = tifftagsread ( filename );
Error in ==> imfinfo at 178 info = feval(fmt_s.info, filename);

채택된 답변

John
John 2011년 9월 7일
It's possible that this is the bug referenced by http://www.mathworks.com/support/bugreports/737970
Can you post your image somewhere for me to take a look at it?
  댓글 수: 2
Zhanhong
Zhanhong 2011년 9월 7일
Thanks, I'm trying to upgrade the matlab to the latest version which the problem is said to be solved. The bug description is very similar to what I see. The file itself is taken by a CCD software and the stack image is very large. I'm trying to think of a way to share it.
Zhanhong
Zhanhong 2011년 9월 7일
Thank you John. The bug was fixed in ver. 2011b and I just upgraded to it. It works perfect now.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 7일
I suspect the Tags of the TIFF image are not formed correctly.
  댓글 수: 1
Zhanhong
Zhanhong 2011년 9월 7일
That's also my suspect but the image stacks are created directly by a CCD device and I'm not familiar with the tiff images.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by