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

Home » Public Forums » archive » IDL Image Binary Coloring
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL Image Binary Coloring [message #91496] Tue, 21 July 2015 05:33 Go to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Hey there!

I produced an array with 0's and 1's and I would like to visualize that simply by using the "image"-command

I tried to figure it out by looking in the manual but that didn't help....

Is it even possible to do that?


Greetings
Re: IDL Image Binary Coloring [message #91498 is a reply to message #91496] Tue, 21 July 2015 06:56 Go to previous messageGo to next message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
On Tuesday, July 21, 2015 at 8:33:16 AM UTC-4, Kai Heckel wrote:
> Hey there!
>
> I produced an array with 0's and 1's and I would like to visualize that simply by using the "image"-command
>
> I tried to figure it out by looking in the manual but that didn't help....
>
> Is it even possible to do that?
>
>
> Greetings

The image() command does not expand its argument's
dynamic range automatically. So 1 looks very similar to 0.

To address this ...

IDL> img = image(bytscl(array))

or

IDL> img = image(255*array)
Re: IDL Image Binary Coloring [message #91517 is a reply to message #91498] Thu, 23 July 2015 07:43 Go to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Dienstag, 21. Juli 2015 15:56:18 UTC+2 schrieb David Grier:
> On Tuesday, July 21, 2015 at 8:33:16 AM UTC-4, Kai Heckel wrote:
>> Hey there!
>>
>> I produced an array with 0's and 1's and I would like to visualize that simply by using the "image"-command
>>
>> I tried to figure it out by looking in the manual but that didn't help....
>>
>> Is it even possible to do that?
>>
>>
>> Greetings
>
> The image() command does not expand its argument's
> dynamic range automatically. So 1 looks very similar to 0.
>
> To address this ...
>
> IDL> img = image(bytscl(array))
>
> or
>
> IDL> img = image(255*array)


Thanks David!

I also found out that it is possible to use the MIN and MAX keyword. This also leads to a binary map.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: error bar linestyles in cgplot
Next Topic: compass search

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

Current Time: Wed Oct 08 07:23:31 PDT 2025

Total time taken to generate the page: 0.00453 seconds