MATLAB: How to read the headers in complicated tiff files

headersimage processingMATLABtiff

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.

Best Answer

How about using LibTIFF library?
t = Tiff('FILENAME.tif','r');
tagValue = t.getTag('SOME_TAG_ID');