How can I read the headers in complicated tiff files?
54 views (last 30 days)
Show older comments
Melina Zempila
on 1 Oct 2018
Commented: Kojiro Saito
on 3 Oct 2018
Hello dear all.
I have some tiff files that contain the information that I'm looking for within their header lines.
I used imfinfo and a custom function (tiff_read_header) but still I can't get to import into matlab what I see when opening the tiff with notepad++ (please see the attached file).
I could rename the tiff files to dat and then by using importdata I can manipulate them, but still that's not a neat solution...
Any ideas?
Thank you in advance,
Melina.
0 Comments
Accepted Answer
Kojiro Saito
on 2 Oct 2018
How about using LibTIFF library?
t = Tiff('FILENAME.tif','r');
tagValue = t.getTag('SOME_TAG_ID');
4 Comments
More Answers (0)
See Also
Categories
Find more on Image Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!