Meaning of 'offset' returned by imageinfo

3 visualizzazioni (ultimi 30 giorni)
AB
AB il 11 Lug 2022
Commentato: DGM il 12 Lug 2022
What does the parameter 'offset' returned by imageinfo.m mean? There is no explanation for it in the function documentation.
E.g.:

Risposta accettata

DGM
DGM il 11 Lug 2022
Modificato: DGM il 11 Lug 2022
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 Commenti
AB
AB il 12 Lug 2022
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 il 12 Lug 2022
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing and Computer Vision in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by