Window/Level Test
This is a crude demonstration of the gray scale window and
level function commonly used in medical imaging. It is meant
to illustrate the need for access to the hardware lookup tables
(available in Unix, PC, and Mac windowing environments today).
Let's try to persuade the folks at Sun to add an object to
the Java API, maybe a Colormap object,
to hide the platform-specific implementations.
Although the gray level window and level function can be
performed in software, the speed (even when using native code)
is not acceptable. The applet below uses the RGBImageFilter
class in Java to demonstrate the problem. The gray scale image
on the left contains 10K pixels. The cardiac MRI in the middle
contains 64K pixels. The chest X-ray on the right contains 78K
pixels. A typical chest X-ray contains 5120K pixels.
Change the upper and lower gray level window limits by clicking
and dragging on the red triangles.
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.
If you really want to tax you browser, here are some other images:
- SPECT Projections 64x128x16, 128K pixels, 32KB JPEG
I modified and subclassed the
NIH Rotator
applet to make it spin. If you've got a fast machine and a bunch
of memory, the performance isn't bad.
- Beating Cardiac MRI 128x128x16, 256K pixels, 48KB JPEG
- SPECT Projections 64x128x32, 256K pixels, 62KB JPEG
- Full Size Chest X-ray 2487x2048, 4974K pixels, 66KB JPEG
It took about 30 secs. to update on an HP715/100 with 64MB
of memory. I'm impressed that it did it at all.
- Beating Cardiac MRI 256x256x16, 1024K pixels, 174KB JPEG
If you're very patient, it will update.
Here are the sources:
Maybe you can find the bugs for me?
Created 06/04/96 by Andrew Barclay,
abb@nuccard.eushc.org
Updated 06/08/96 by abb@nuccard.eushc.org
Image Credits:
The chest X-ray is courtesy of Cemax-Icon, Inc..
The SPECT projection data came from the Nuclear Cardiology Dept.
at Crawford Long Hospital of Emory University.
The MRI is about 6 years old and I've forgotten where it came from, sorry...