How can I get filenames for individual images in a multi-page tiff stack?

5 ビュー (過去 30 日間)
Charlene Zhi Lin Ong
Charlene Zhi Lin Ong 2019 年 9 月 4 日
コメント済み: Neuropragmatist 2019 年 9 月 6 日
Hi all,
I am having trouble figuring out how to recover the original file names of the images in a multi-page tiff stack. I am able to see the filenames of the individual images in ImageJ (Beside the counter for the number of images). However, I am clueless how to recover the filenames from Matlab. I need to match the image to the corresponding data, hence I need its original filename.
Thank you!
Cheers,
Charlene

回答 (2 件)

Neuropragmatist
Neuropragmatist 2019 年 9 月 4 日
  4 件のコメント
Neuropragmatist
Neuropragmatist 2019 年 9 月 6 日
You could make a dummy file that just contains random data or blank images? Unless you don't have access to the image source.
All we really want to see is the file structure not the contents.
M.

サインインしてコメントする。


Guillaume
Guillaume 2019 年 9 月 4 日
Probably with:
filepath = 'C:\somewhere\somefile.tiff'
infos = imfinfo(filepath); %should return a Px1 structure where P is the number of pages
pagenames = {infos.Filename} %you don't have to extract the field into a cell array.
  3 件のコメント
Charlene Zhi Lin Ong
Charlene Zhi Lin Ong 2019 年 9 月 5 日
Hi Guillaume,
Yes I checked other fields too and I can't find it. Sure I will look into the Tiff format! About the sample multipage tiff file, I think I could try generating one of my own and playing around with it, and if I manage to sort it out, I will also post for the community=)

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by