File Exchange

image thumbnail

Tiff Tag Reader

version (4.11 KB) by Dirk-Jan Kroon
A one file implementation of Tag-reader for complex Tiff files.


Updated 13 Jun 2012

View License

This function tiff_read_header can be used to read the header(s) of complex Tiff files. It implements a part of the Tiff version 5 and 6 specifications.

Info = tiff_read_header( Filename )
[Info,I] = tiff_read_header( Filename )

Filename : filename of a Tif/Tiff file

Info : Struct with Tiff tags, or in case of multiple images,
cell array with struct for every image.
I : Image Data (Only supported for non-compressed data)

SubHeaders can be found in SubIFD1,SubIFD2 ...


Comments and Ratings (1)


How would I do the reverse?
I'd like to read a tiff image and it's header, modify a part of the header and write it back.


fixed small bug (multiple byte counts)

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

MATLAB Online Live Editor Challenge

View the winning live scripts from faculty and students who participated in the recent challenge.

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video