NetPBM Image Manipulation Routines

The NETPBM package contains routines which can be used to manipulate a set of standard image formats. The image formats are pbm, pgm, and ppm, for portable bitmap, graymap and pixmap, respectively. The bitmap format is black and white, the graymap add shades of gray, and the pixmap has color. The name "pnm" is used to refer to any of the formats. Images of any type can be manipulated by first translating them into a pnm format. To translate to a pnm format see The NETPBM Image Conversion Routines help page.

At this time, the most help you can get for running an individual routine is to type its name followed by "-h". Most will then print out a usage statement. The ones that don't will at least complain enough so that you will know what it wanted in the first place.

Program

Purpose

pbmclean

Flip isolated pixels in a bitmap

pbmlife

Apply Conway's rules of Life to a portable bitmap

pbmmake

Create a blank bitmap of a specified size

pbmmask

Create a mask bitmap from a regular bitmap

pbmpscale

Enlarge a pbm image with edge smoothing

pbmreduce

Read a portable bitmap and reduce it N times

pbmupc

Create a Universal Product Code bitmap

pgmbentley

Bentleyize a portable graymap

pgmcrater

Create cratered terrain by fractal forgery

pbmedge

Edge-detect a portable graymap

pgmenhance

Edge-enhance a portable graymap

pgmhist

Print a histogram of the values in a portable graymap

pgmkernel

Generate a convolution kernel (for pnmconvol use)

pgmnoice

Create a PGM made up of white noise

pgmnorm

Normalize the contrast in a portable graymap

pgmoil

Turn a portable graymap into an oil painting

pgmramp

Generate a grayscale ramp

pgmtexture

Calculate textural features on a portable graymap

pnmalias

Anti-alias a PNM (remove jagged lines)

pnmarith

Perform arithmetic on two portable anymaps

pnmcat

Concatenate portable anymaps

pnmcomp

Create composite image from two PNMs

pnmconvol

General MxN convolution on a portable anymap

pnmcrop

Crop a portable anymap

pnmcut

Cut a rectangle out of a portable anymap

pnmdepth

Change the maxval in a portable anymap

pnmenlarge

Read a portable anymap and enlarge it N times

pnmfile

Describe a portable anymap

pnmflip

Perform one or more flip operations on a portable anymap

pnmgamma

Perform gamma correction on a portable anymap

pnmhisteq

Histogram-equalize a PNM

pnmhistmap

Draw a histrogram for a PGm or PPM file

pnmindex

Build a visual index of a bunch of anymaps

pnminvert

Invert a portable anymap

pnmmargin

Add a border to a portable anymap

pnmnlfilt

Miscellaneous non-linear filters

pnmnoraw

Force a portable anymap into plain format

pnmpad

Add borders to a PNM

pnmpaste

Paste a rectable into a portable anymap

pnmrotate

Rotate a portable anymap by some angle

pnmscale

Scale a protable anymap

pnmshear

Shear a portable anymap by some angle

pnmtile

Smooth out an image

ppm3d

Merge two PPM files into a red/boue (3-D galsses) PPM

ppmbrighten

Change image saturation and value on an HSV map

ppmchange

Change one color into another color

ppmdim

Dim a portable pixmap (similar to ppmbrighten)

ppmdither

Simplistic grayscale convert for color images

ppmflash

Brighten a picuture (similar to ppmbrighten)

ppmforge

Fractal forgeries of clouds, planets, and starry skies

ppmhist

Print a histogram of a portable pixmap

ppmmake

Create a pixmap of a specified size and color

ppmtomap

Extract all colors from a ppm file

ppmmix

Blend together two portable pixmaps (fade between)

ppmnorm

Normalize the contrast in a portable pixmap

ppmntsc

Make PPM look like a television image (dim every other row)

ppmpat

Make a pretty pixmap

ppmquant

Quantize the colors in a portable pixmap down to a specified number

ppmquantall

Run ppmquant on a bunch of files all at once, so they share a common color map

ppmqvga

Eight plane quantization

ppmrelief

Run a Paplacian relief filter on a portable pixmap

ppmshift

Shift rows randomly left and right (water reflection).

ppmspread

Displace pixels by random amounts (unfocus image).