Re: Image display [message #36051 is a reply to message #28640] |
Thu, 07 August 2003 09:39  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
New2IDL writes:
> Is there anyway to display images in a clear format without
> bytscaling them. I have a dicom image which i can open using ImageJ
> and Osiris. When i try to open the same without bytscaling in IDL, i
> can see grains in the image and the number of grey shades in the image
> is lesser and there are white patches.
> Is there any way to fix this. The image has floating point values.
If you don't byte scale your data, IDL will use only
the lowest 8 bits of information in each pixel value
to display the data. This is why you are seeing those
strange artifacts.
Dicom images are typically 16-bit images, so users
sometimes like to choose what portion of their
total data set is being byte scaled. This is called
"windowing". Setting the TOP keyword on the BYTSCL
command will adjust the contrast on the portion of
the data that is in the "window".
You can read about this in this article (as well as
find links to some programs):
http://www.dfanning.com/ip_tips/contrast.html
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|