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

Home » Public Forums » archive » Re: IDL 8 image function
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: IDL 8 image function [message #74778 is a reply to message #74776] Wed, 02 February 2011 07:51 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Feb 2, 1:30 pm, sh <sebastian.h...@gmail.com> wrote:
> On Feb 2, 2:31 pm, sh <sebastian.h...@gmail.com> wrote:
>
>
>
>
>
>> On Feb 2, 12:44 pm, sh <sebastian.h...@gmail.com> wrote:
>
>>> On Feb 2, 11:44 am, David Forcadell <david...@gmail.com> wrote:
>
>>>> On Feb 2, 11:02 am, sh <sebastian.h...@gmail.com> wrote:
>
>>>> > Hi,
>
>>>> > Is there any option/keyword to turn of the scaling between 0-255? I
>>>> > have already scaled by values e.g. between 0 and 100 because I only
>>>> > want to use this colors in the colortable, and not all of them!
>>>> > Thanks!
>
>>>> > Sebastian
>
>>>> I am not sure that i understand you question, but perhaps you want
>>>> this :
>
>>>> result=BYTSCL( MAT_IN , TOP=100)
>
>>> Yes I do it exactly like this, but image() rescales it again between 0
>>> and 255. How to turn this off?
>
>> Another question, is there any possiblity to set a background value
>> like NaN in iimage?
>
>> All NaN values are transformed to 0 after bytscl?
>
> Ok I think I found the problem. Within idlitvisimage__define.pro in
> line 1801 there is the bytscl, without the possibility to turn it off.
>
> Would be nice to specify the top and bottom or even turn it off if the
> data is already scaled.
>
> Then the next think is the colorbar which didn't match when I update
> line 1801 with top and bottom.

If I understand this right, you can to map your data into RGB, and
give image() a 3 channel image, which it will display as it is. If you
do that, you can also make it a 4 channel image, with the alpha
(transparency) channel determined by the presence of NaNs, to make
NaNs transparent.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lists in strsplit
Next Topic: Error Bar Thoughts

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

Current Time: Fri Oct 10 10:33:38 PDT 2025

Total time taken to generate the page: 0.79918 seconds