필터 지우기
필터 지우기

Extract creation date and time from TIFF image

조회 수: 14 (최근 30일)
Angelina
Angelina 2012년 9월 4일
I have been trying to extract the acquisition date and time from TIFF images. I attempted to use the getTag function, using the following code:
>> t = Tiff('hist.tif', 'r'); tagval1 = t.getTag(306)
but I receive the error:
??? Error using ==> tifflib Unable to retrieve DateTime.
Error in ==> Tiff>Tiff.getTag at 795 tagValue = tifflib('getField',obj.FileID,tagId);
(tag 306 is the DateTime tag, and hist.tif is the name of my tif image file)
... any suggestions? Or does anyone know of an alternative function to extract the time stamp of a TIFF file?
The file was exported from Nikon Instruments proprietary software, and can also export in JPEG2000.
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 9월 4일
What is your evidence that the creation time is stored in that .TIFF file?
John
John 2012년 9월 4일
You can use IMFINFO to verify that the DateTime tag is not really there.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by