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

Home » Public Forums » archive » Re: Simple question,
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: Simple question, [message #28853] Mon, 14 January 2002 05:06 Go to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
>
> I have an array (251,251,16). I would like to average value of pixel
> where there is mask value of 255 by befor anf after values.
>
> ====This code works===
>
> for k=1, 10 do begin
> temp1(*,*,k)=((temp(*,*,k-1)+temp(*,*,k+1))/2) * (temp(*,*,k) eq
> 255) + (temp(*,*,k) * (temp(*,*,k) ne 255))
>
> end
>
> ====
>
> ====But this code doesn�t work====
..........
"Then don't do it!" Tommy Cooper


Sorry but I couldn't resist

Martin
[Message index]
 
Read Message
Read Message
Previous Topic: Changing the order of true color images
Next Topic: Using Perl w/idl

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

Current Time: Wed Oct 08 15:37:35 PDT 2025

Total time taken to generate the page: 0.00438 seconds