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

Home » Public Forums » archive » Re: STANDARD DEVIATON
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: STANDARD DEVIATON [message #20946] Tue, 01 August 2000 00:00 Go to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
Oops. I need more (or less) coffee:

> function imageSD, image
>
> localmean = smooth(float(image), 3, /edge_truncate)
> localsd = sqrt((float(image)-temporary(localmean))^^2)
> localsd = smooth(temporary(localsd), 3, /edge_truncate)
>
> return, localsd
>
> end

Naturally, you should take the local average *before*
the square root.


function imageSD, image

localmean = smooth(float(image), 3, /edge_truncate)
localsd = (float(image)-temporary(localmean))^^2
localsd = smooth(temporary(localsd), 3, /edge_truncate)
localsd = sqrt(temporary(localsd))

return, localsd

end


Struan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IMDISP update
Next Topic: Re: Record Day on IDL Newsgroup

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

Current Time: Sun Oct 12 01:23:37 PDT 2025

Total time taken to generate the page: 0.24292 seconds