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  |
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.")
|
|
|