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

Home » Public Forums » archive » Re: Variance in sub-sections?
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: Variance in sub-sections? [message #29385 is a reply to message #29383] Mon, 18 February 2002 06:04 Go to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
"Joshua Nipper" <nipperjc@ufl.edu> wrote in message
news:a4jph3$qdi$1@spnode25.nerdc.ufl.edu...
> I have a 512x512 image, and I would like to calculate the mean/variance in
a
> 3x3 neighborhood around every pixel. What would be the easiest way to do
> this w/out for loops?

Martin Downing once posted a nifty routine IMAGE_VARIANCE to the group.
Look up a thread called "efficient kernel or masking algorithm ? UPDATE"
on Google.
http://groups.google.com/groups?hl=en&q=variance+kernel& amp;meta=group%3Dcomp.la
ng.idl-pvwave

Things should then be as simple as
variance = IMAGE_VARIANCE(image, 1, MEAN=mean) .

Jaco

PS: I posted without thinking too much on Friday, in response to your
Kuwahara filter post. The variance I suggested was calculated with respect
to a 'sliding' mean value, and probably not a very good choice for this
kuwahara thingie.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: broken country borders in map_continents
Next Topic: Re: debug IDL DLM in Visual C++

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

Current Time: Sat Nov 29 17:04:15 PST 2025

Total time taken to generate the page: 8.17244 seconds