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 #89203 is a reply to message #89202] Sun, 03 August 2014 12:21 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
Hi,

I am not sure to understand well what you try to do but what is sure is
that you are overwriting many times a new median value to the same place
in clean[k,l] while you are still in the i, j loop, thus making many
useless operations without writing their results.

I *think* you might want to move the block:

med = MEDIAN(holder)
clean[k,l] = med

out of the two inner loops and also replace it by:

clean[k,l] = MEDIAN(holder)

But this you should check by yourself

Fabien
[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:07:25 PDT 2025

Total time taken to generate the page: 0.00184 seconds