Finding name of single frames when reading a Tiff stack file
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
bruno stricker
el 10 de Ag. de 2023
Comentada: Walter Roberson
el 23 de Ag. de 2023
I have a stack tiff file 'test.tif' where each frame has a name ('frame_A', 'frame_B', etc). How can I retrieve those names when reading in the .tif file?
I tried with
info = imfinfo('test.tif')
but unfortunately it does not solve the issue.
5 comentarios
DGM
el 22 de Ag. de 2023
The most direct way to get an answer is to provide an example of the file you're working with.
The forum editor won't let you attach a TIFF, but you can zip it or append a fake extension.
Respuesta aceptada
Stephen23
el 23 de Ag. de 2023
Editada: Stephen23
el 23 de Ag. de 2023
This is what GIMP found hidden amongst the EXIF data:

It looks like some tool has added some non-standard EXIF meta-data. Note that hidden amongst those digits are the character codes of IMGP9827, etc. No other EXIF tool I tried with that file could identify that non-standard meta-data.
Lets try with MATLAB:
unzip('test_stack.zip')
S = imfinfo('test_stack.tif')
S.UnknownTags % interesting, what are these hidden amongst the EXIF meta-data?
S(1).UnknownTags.Value % aaahhh...
V = S(1).UnknownTags(2).Value % that looks promising...
T = char(nonzeros(V).') % ignore null characters
C = regexpi(T,'\w+\.JPG','match')
2 comentarios
Walter Roberson
el 23 de Ag. de 2023
I was trying to figure out what the rule was for representing the file names when I got called away for the rest of the evening.
Más respuestas (1)
Walter Roberson
el 22 de Ag. de 2023
Individual TIFF frames do not have "names". If you were to read in a bunch of image files and combine them into a TIFF file, then the file names would not typically be stored.
The program that created the TIFF file might potentially have stored the names as Image Description https://www.awaresystems.be/imaging/tiff/tifftags/imagedescription.html or as Page Name https://www.awaresystems.be/imaging/tiff/tifftags/pagename.html or Copyright https://www.awaresystems.be/imaging/tiff/tifftags/copyright.html . Or as 9c9b XPTitle (Windows) or 9c9c XPComment (Windows) or 9c9f XPSubject (Windows)
At first File Source https://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif/filesource.html seems plausible from the name, but it is a numeric tag with value 3 to indicate DSC (Digital Still Camera)
0 comentarios
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!