[comp.sys.mac.programmer] Image manipulation question

rfl@oddjob.UChicago.EDU (Bob Loewenstein) (02/02/89)

I have b&w images that I am displaying on a MacII screen 8 bits deep.
The palette for the cwindow is all grayscale and the image is copied
from a pixmap with its own grayscale colortable.  All images that I
will display in this program will be grayscales (at this time).  The
distribution of values in my image may be a gaussian with a long
tail toward the high values.  I want to be able to change the
gray-mapping: that is, rescale the display to enhance the gaussian
and let the tail saturate or even rollover.  I can do this by
changing the color table of the pixmap and the calling copypix. However,
shouldn't I be able to do this faster by 1) change the CLUT of the
gdevice or 2) the correct way, whatever that is.  Does anyone have
suggestions as to how to manipulate images properly to get the results
I'm looking for?

Any hints would be appreciated. I've read IMV and get quite confused.

Thanks...