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

Home » Public Forums » archive » Re: Extracting average pixel value
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: Extracting average pixel value [message #66171] Fri, 24 April 2009 02:53 Go to previous message
jameskuyper is currently offline  jameskuyper
Messages: 79
Registered: October 2007
Member
Bennett wrote:
> On Apr 23, 1:00 pm, Bennett <juggernau...@gmail.com> wrote:
...
>> In IDL you can do a
>> newArray = CONVOL(imageArray, [[1,1,1],[1,0,1],[1,1,1]], /CENTER)
>> This will compute the average value in a 3x3 box around each pixel
>> (except
>> the edge pixels which you can set to zero or truncate or handle
>> separately...
>> whatever you please really. Who needs edges anyway, right?)
>>
>> Bennett
>
> I forgot to say also divide your resulting newArray by 8.

Alternatively, you could divide the array of weighting factors by 8.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Spherical Surface Plot w/ fsc_surface from David Fanning (:
Next Topic: Re: An Callable IDL Question

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

Current Time: Wed Oct 08 18:21:54 PDT 2025

Total time taken to generate the page: 0.00834 seconds