Code covered by the BSD License  

Highlights from
pnm

from pnm by Peter J. Acklam
Read and write portable pixelmaps, portable graymaps and portable bitmaps.

Contents.m
% Portable Bitmap Toolbox.
% Version 1.003 11-May-1998
%
% Image input/output.
%   pbmread    - Read a PBM (Portable bitmap) file from disk.
%   pbmwrite   - Write a PBM (Portable bitmap) file to disk.
%   pgmread    - Read a PGM (Portable graymap) file from disk.
%   pgmwrite   - Write a PGM (Portable graymap) file to disk.
%   ppmread    - Read a PPM (Portable pixmap) file from disk.
%   ppmwrite   - Write a PPM (Portable pixmap) file to disk.
%
% Color map manipulation.
%   cmsort     - Sort color map.
%
% Image conversions.
%   im2ind     - Convert image to indexed image.
%   im2inds    - Convert image to indexed image (slow/memory efficient).
%   im2indr    - Convert image to indexed image (by removal).
%   im2indd    - Convert image to indexed image (direct).
%
% Demos and test programs.
%   pnmdemo    - Demonstration of portable bitmap utilities.
%   pnmtest    - Test program for the PNM Toolbox.
%
% Miscellaneous functions.
%   pnmgeti    - Get integers from an ascii encoded PBM/PGM/PPM file.
%   pnmmagic   - Find and identify magic number in PBM/PGM/PPM file.

%   Author:      Peter J. Acklam
%   Time-stamp:  1998-05-11 18:16:39
%   E-mail:      jacklam@math.uio.no (Internet)
%   URL:         http://www.math.uio.no/~jacklam

Contact us at files@mathworks.com