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

Home » Public Forums » archive » How to specify pixel values using where function (any suggestions?)
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
How to specify pixel values using where function (any suggestions?) [message #85405] Wed, 31 July 2013 00:10 Go to next message
Brent Fallarcuna is currently offline  Brent Fallarcuna
Messages: 6
Registered: July 2013
Junior Member
I've been using the WHERE function: WHERE(variable name EQ pixel value) and been successful generating array/image with my desired pixel values.
How to use the where function to project specified pixel values like 0,1,2,4,8,16,32,64 and 128?

Thank you.

Brent
Re: How to specify pixel values using where function (any suggestions?) [message #85406 is a reply to message #85405] Wed, 31 July 2013 02:35 Go to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Wed, 31 Jul 2013 00:10:54 -0700 (PDT), Brent Fallarcuna wrote:

> I've been using the WHERE function: WHERE(variable name EQ pixel value) and been successful generating array/image with my desired pixel values.
> How to use the where function to project specified pixel values like 0,1,2,4,8,16,32,64 and 128?
>
> Thank you.
>
> Brent
>
>
Do you mean something like this:

filter=bytarr(256)
filter[0,1,2,4,8,16,32,64,128]=1b
result=where(filter[array])

The result is an array of all subscipts to the array elements with the
desired values.

Cheers, Heinz
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Ugly UNIX IDL Workbench
Next Topic: .sav files issue

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

Current Time: Wed Oct 08 13:52:49 PDT 2025

Total time taken to generate the page: 0.00500 seconds