2.4-FileFormats

2.4-FileFormats - CS 682 1 & $ % Image File...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 682 1 & $ % Image File Formats Image file formats: bitmap, jpeg, tiff, gif, mpeg, pgm, ppm Image files have two parts: header file type info, magic number image dimensions color palette,. . . raster data image pixels CS 682 2 & $ % Manipulating Images Existing software for file format conversions: Matlab pbmplus (Unix, Linux) xv (Unix, Linux) ImageMagick (Unix, Linux, Windows, Mac) Vision SDK (Windows) CS 682 3 & $ % Portable Gray Map: PGM The portable graymap format is a lowest common denominator grayscale file format. The definition is as follows: A magic number for identifying the file type. A pgm files magic number is the two characters P2. Whitespace (blanks, TABs, CRs, LFs). A width, formatted as ASCII characters in decimal. Whitespace. A height, again in ASCII decimal. Whitespace. The maximum gray value, again in ASCII decimal....
View Full Document

Page1 / 4

2.4-FileFormats - CS 682 1 & $ % Image File...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online