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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
Previous Topic: Ugly UNIX IDL Workbench
Next Topic: .sav files issue

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

Current Time: Thu Oct 09 20:38:25 PDT 2025

Total time taken to generate the page: 1.20686 seconds