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

Home » Public Forums » archive » I think my circular median filter is very inefficient
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: I think my circular median filter is very inefficient [message #89206 is a reply to message #89205] Mon, 04 August 2014 00:29 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den måndagen den 4:e augusti 2014 kl. 05:15:41 UTC+2 skrev JRP:
>
> Thank you so so much for this. Amazing how the run time can go from life time scales to coffee scales :D.

I'm glad it was useful. :o)


> Also I realised that the 0's in my mask will create a bias and shift in the median, I was going to change all the zero's in my SE to NaN's, but will it suffice to replace:
>
> indx = where(se)
>
> with
>
> indx = where(se EQ 1)?

If se is binary, those two operations are equivalent.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Off on Colorado Adventure
Next Topic: Routines to transform vectors between map projections

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

Current Time: Wed Oct 08 16:00:09 PDT 2025

Total time taken to generate the page: 0.00278 seconds