rgb2hsv - a program to convert an rgb image to hsv data in image format
Copyright (C) 1998 Mark J. Stock

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

------------------------------------------------------------------

rgb2hsv HOWTO file

rgb2hsv was written by Mark J. Stock and is protected by the
general GNU license. Retain this HOWTO file if you distribute
this software.

rgb2hsv will convert any RGB image in PPM format into another PPM
file, with the r, g, and b channels representing Hue, Saturation,
and Brightness. These values are very important for reducing false-
color imagemaps and heightfields to their real data components.

Some images that this program will work on can be found at:
http://bang.lanl.gov/solarsys/eng/homepage.htm


To compile the rgb2hsv on a Unix system, use cc or gcc like so:

cc -o rgb2hsv rgb2hsv.c -lm

rgb2hsv.c was written in ANSI C, if you need to know...


To convert a colored elevation-like image to a real PGM heightfield,
use the wrapper script maketopo.sh like so:

maketopo.sh myfile.ppm

You will need to convert your source image to PPM first, and when
you do, you may make it the binary or ASCII version.


Shoot. Any questions?
e-mail me!

Mark Stock
mstock@umich.edu


ps.
The included .jpg file, deimos5.jpg, is copyright 1997 by Calvin J. Hamilton
