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

Home » Public Forums » archive » Re: FLOAT images instead of BYTE ones from IDL Object graphics ?
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: FLOAT images instead of BYTE ones from IDL Object graphics ? [message #64852 is a reply to message #64851] Thu, 22 January 2009 06:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gianluca Li Causi writes:

> I'm working with 3D object rendering and I see that the oWindow ->
> GetProperty, IMAGE_DATA=Img always returns a BYTE-type image, while I
> need a FLOAT-type one, not quantized in the 256 levels.
>
> How can I do?
>
> I need this because I always need a 0_to_255 grayscale image of a
> volumetric data, while, for any values of the Opacity, I cannot
> produce a final image with a maximum gray greater than 100 (in fact
> the final gray levels depends on both the volume data, the opacity and
> the number of elements of the volume array).
> If I scale up the final byte image I get a very bad image with
> quantized grayscale...
>
> Someone can help?

It seems to me you are confusing data *display* with the
actual data. The IMAGE_DATA keyword doesn't so much return
a BYTE-type image as it returns a true-color rendition
of what you displayed in the graphics window. What you displayed
is NOT your data, it is a representation of your data, and
that is exactly what you are getting back.

If you want to further manipulate your data, I think you
are going to have to go find the source. You will not find
it in a graphics window, I'm sure of that. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problems with array elements as parameter in c++ function used via call_external
Next Topic: Re: String Formatting

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

Current Time: Thu Oct 09 22:10:48 PDT 2025

Total time taken to generate the page: 0.96028 seconds