The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to read TIFF images that are MM (big endian) format
Replies: 9   Last Post: Aug 16, 2013 4:24 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 13,022
Registered: 12/26/06
How to read TIFF images that are MM (big endian) format
Posted: Sep 25, 2009 10:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Someone gave me 2 byte tiff image files that are not the usual II-
style tiff images. (If you open a tiff image with a text editor you
will probably see that the first two characters are II). The "magic
number" (which is the first two bytes of the file) specify the byte
order. It is either II for litle endian or MM for big endian.

Magic number(s):
II (little-endian): 49 49 2A 00 hex
MM (big-endian): 4D 4D 00 2A hex

The images I was given are MM. Evidently neither the imread()
function nor the Tiff() object (two built-in MATLAB routines) can read
these files. A search of the internet and File Exchange for MATLAB
code to read this type of tiff file turned up nothing. Does anyone
know how I can read them?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.