WINDOWIMAGE Description
Allows the user to interactively adjust image contrast by means of "windowing and
leveling" the image. Move the cursor vertically in the window to adjust the image
stretch "window". Move the cursor horizontally in the window to adjust the image
"level". Categories
Graphics
Params
image: in, required, type=any
Any 2D array that you wish to adjust the contrast of.
Keywords
brewer: in, optional, type=boolean, default=0
Set this keyword to indicate a Brewer color table is desired.
colortable: in, optional, type=integer, default=0
The index number of a color table to load with cgLoadCT.
neutralcolor: in, optional, type=string
The name of the color to use for values outside the image "window" in
the color table. If a default grayscale color table is loaded, the default
color is "rose", otherwise the default is "black".
reverse: in, optional, type=boolean, default=0
Set this keyword if you wish to reverse the color table.
Examples
To see a demonstation::
IDL> WindowImage
Author
FANNING SOFTWARE CONSULTING::
David W. Fanning
1645 Sheely Drive
Fort Collins, CO 80526 USA
Phone: 970-221-0438
E-mail: david@idlcoyote.com
Coyote's Guide to IDL Programming: http://www.idlcoyote.com
History
Change History::
Written, 29 November 2010. DWF.
Added color protection to the program. 30 Nov 2010. DWF.
Modification of cgImage command to prevent flashing. 27 Feb 2011. DWF.
Copyright
Copyright (c) 2010, Fanning Software Consulting, Inc.