필터 지우기
필터 지우기

I want to access custom TIFF tags

조회 수: 10 (최근 30일)
Mark Delaney
Mark Delaney 2011년 7월 7일
I am interested in reading and writing custom tags in TIFF files using MATLAB. It appears, from a cursory review of the LibTiff website, that invoking tiffmergefieldinfo with a list of the custom tags I need to work with might be enough. But the call is not supported in the tiff object.
I would prefer to not maintain a custom build of the LibTiff library, although that would probably work.
Has anyone worked in this area already?

답변 (1개)

Ashish Uthama
Ashish Uthama 2011년 7월 11일
Mark, would the output of imfinfo be of any use? I think it reads custom tags (as 'unknown' tags in the output).
  댓글 수: 3
Ashish Uthama
Ashish Uthama 2011년 7월 11일
Mark, if they are numerical values or have fixed length, you could attempt to use the offset field of the unknown tag to gain raw-access to the location of the value in the file (fopen,fseek, fwrite, fclose). Of course, I am sure you are aware of the risks of doing so :)
Mark Delaney
Mark Delaney 2011년 7월 11일
Possible. Painful. Would be very nice to be able to open tiff, do
t_out.setTag(myCustomTagID, 123)
and write t_out to the tiff directory or hte tiff file. The value proposition in MATLAB is all about working at higher levels of abstraction. It is great to have fseek et. al. for when all else fails, but much better to not need it.

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

카테고리

Help CenterFile Exchange에서 Image Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by