comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » CT image without scaling
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: CT image without scaling [message #91984 is a reply to message #91982] Thu, 24 September 2015 09:07 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dete van Eeden writes:

>
> On Thursday, September 24, 2015 at 5:41:56 PM UTC+2, David Fanning wrote:
>> Dete van Eeden writes:
>>
>>> How can I display a CT image on idl without it being scaled to 0,255?
>>
>> I'd try:
>>
>> TV, image
>>
>> Or, if the data is not in the range 0 to 255 already, scale it yourself
>> with BytScl to whatever range you want within the values 0 to 255
>> required to put an image on the display.
>>
>> Cheers,
>>
>> David
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
>
> Thank you, the values range from 1000 to -1000 since it is a CT image and it is displayed in hounsfield units
>
> how many greyscale values will tv, image display?

All non-true-color images are displayed with values ranging from 0 to
255. Often, with CT and other medical images, you want to "window and
level" the image.

Here are a couple of articles you might find helpful:

http://idlcoyote.com/ip_tips/xstretch.php
http://www.idlcoyote.com/ographics_tips/contrastzoom.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot
Next Topic: Breaking a large program file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:26:13 PDT 2025

Total time taken to generate the page: 0.95936 seconds