Meaning of 'offset' returned by imageinfo

What does the parameter 'offset' returned by imageinfo.m mean? There is no explanation for it in the function documentation.
E.g.:

 채택된 답변

DGM
DGM 2022년 7월 11일
편집: DGM 2022년 7월 11일

0 개 추천

imageinfo() is just a convenience tool for what imfinfo provides. That said, the metadata that's available depends on the file format and the software that wrote the file, so even the documentation for imfinfo() can't account for every possible tag that might show up. Offset information is common in metadata. Sometimes it's spatial offsets in the image space. Sometimes it's data offsets to the beginning of a certain field or data block.
In this case, I'm going to guess that this is a TIFF file and the tag specifies the byte offset to the end of this image block. I'm not really sure whether that's from the beginning of the file or if it's relative to the IFD position. I'm not terribly familiar with the format specification for TIFF. A more precise (and certain) description would require more information about the file and perhaps some time reading the format spec.

댓글 수: 2

AB
AB 2022년 7월 12일
Thanks for your answer. Yes, the file type is a tiff image. Why does it need a byte offset? Just for reference, here is the rest of the output from imageinfo:
DGM
DGM 2022년 7월 12일
Like I mentioned, I'm no expert on the format details, so forgive me if my explanation isn't detailed and precise. A TIFF file is a container and may contain multiple images (and other blocks of information). Offset information would be used by the decoder to navigate within the file.

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

추가 답변 (0개)

제품

릴리스

R2021b

질문:

AB
2022년 7월 11일

댓글:

DGM
2022년 7월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by