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

Home » Public Forums » archive » Re: Manipulation using where
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: Manipulation using where [message #53102 is a reply to message #53100] Wed, 21 March 2007 07:16 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Mar 21, 8:25 am, "Vidhya" <vidh...@gmail.com> wrote:
> Hi all,
>
> I have an image, SUBIMAGE LONG = Array[372, 374, 62] and I
> would like to find all the values equal to zero (basically missing
> lines/rows). Right, done using
>
> z = where(subimage(*,*,*) EQ 0, count)
>
> The result is one-dimensional array: LONG = Array[15457]
>
> now I would like perform an operation trying to find which row there
> are in, and find the averages of the rows above and below and
> replacing them for those found zero values.
>
> How do I go about this?
>
> I tried using array_indices, but its bit confusing.
> Your help is appreciated.
>
> Thanks,
> Vidhya

z_x = z mod 372
z_y = z/372 mod 374
z_z = z/372/374 mod 62

Cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ps file with text
Next Topic: ps file

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

Current Time: Sun Oct 12 04:42:34 PDT 2025

Total time taken to generate the page: 1.83818 seconds