[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: STANDARD DEVIATON
- Subject: Re: STANDARD DEVIATON
- From: Struan Gray <struan.gray(at)sljus.lu.se>
- Date: 1 Aug 2000 13:18:20 GMT
- Distribution: world
- Newsgroups: comp.lang.idl-pvwave
- Organization: This line intentionally left bland
- References: <3986B6E9.48105613@met.ed.ac.uk>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:20574
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