Miscellaneous graphics source and apps.
See also related sections : Image Coding ,
and Genesis3D Stuff amd
Palettizing Image Toys
SortPal (12k, Zip) , a palette-sorter. We read
in a BMP, sort the palette, and spit it out. The sort is done to minimize
the "weighted" "perceptual" average error between adjacent palette entries.
By weighted I mean, averaged with respect to the actual pixels in the image
(multiply each distance by the usage of that palette entry), and by "perceptual"
I mean that it is an MSE error in the LAB color space. This is a generalized
Travelling Salesman Problem, and we do a pretty darned good job here.
Now offers : greedy, lazy, and genetic sorts. Also offers an 'optimize' sort.
PalBMP (15k, Zip) a palettizer. The source contains
many different types of color quantizers; we use an improved octree-pruning method
for speed, followed by a local-K-means pass to speed up the sort.
These may require GLUT
GLpal (33k, Zip) (with Win32 Exe) an OpenGL program which plots the
palette of a BMP as points in space, with their colors; mostly intended for
looking at post-'sortpal' data (so you can get whacked off my mad sorting skills).
GLterrain (35k, Zip) (with Win32 Exe) ; plots a grayscale
heightmap raw image as a terrain. Not very slick, but a simple OpenGL demo.
This stuff is hugely amusing to me. Plot animeq -t5 ((256*sin(x/t))~(256*sin(y/t)))
as a hue. See some examples in the gallery.
AnimEq (50k, Zip, exe & src) This is hours of fun, and
a great strain on your CPU :^) The slider dialog is kind of glitchy. You have
to press play, then slide the frame number up to 2; it should kick from there.
ColorEq (45k, Zip, exe & src) ; simpler version. Just
use "coloreq " on the command line.
Charles Bloom / cb at my domain send me email
Back to the Source Code Index
The free web counter says you are visitor number