Java Window/Level -- Cervical X-Ray
This page should work with Netscape 3.0 or Internet Explorer 3.0.
The applet below demonstrates 2 image manipulation objects:
32-bit Grayscale Window/Level Control
Moving the mouse to the left side of either image will activate
a window/level control.
Change the upper and lower gray level window limits by clicking
and dragging in the red triangles or moving up/down/left/right
within the red box.
Try it in the right hand viewer (before zooming) to get a feel
for it.
Zoom/Pan Box
The 'z' key toggles a zoom box on and off in the left hand viewer.
Pressing the left mouse button while the zoom box is active will
zoom the enclosed region into the right hand viewer.
Holding the left mouse button down while moving the mouse will
pan the zoomed region in the right hand viewer interactively.
Pressing '+' will increase the zoom factor by 0.5.
Pressing '-' will decrease the zoom factor by 0.5.
The gray levels may be manipulated independently in the two viewers.
8 b i t s |
|
 |
|
|
1 2 b i t s |
|
 |
|
|
Note: Sometimes the ImageProducer and ImageConsumer get out of
sync and the image draw fails to complete. It needs a little
bump. Click anywhere in the image to force an update.
I have only tested this applet on Unix platforms using Netscape 3.0.
I would appreciate hearing about any problems on other platforms
or when using Internet Explorer 3.0. Thanks.
Image Credit
The original 1463x1755, 16-bit, x-ray was obtained with kind permission
from the
NHANES II project under the
Communications Engineering Branch of the
National Library of Medicine. Thank you.
The images used are cropped from the original.
They are 1192x835 pixel, 8-bit, progressive JPEGs made
from the 16-bit raw data using the IJG compression software.
The upper 8 bits (bits 5-12) compress to 22KB at 50% quality.
The lower 4 bits (bits 1-4) compress to 27KB at 50% quality.
Created 10/24/96 by Andrew Barclay,
abb@nuccard.eushc.org
Updated 10/24/96 by abb@nuccard.eushc.org