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

Home » Public Forums » archive » Faster image median filtering
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: Faster image median filtering [message #76753 is a reply to message #76662] Fri, 24 June 2011 15:33 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I think suspect that the IDL implementation of MEDIAN is reasonably optimal (e.g. using a rolling window). In the ancient days of IDL, MEDIAN() only worked on byte data, and I used to use a CALL_EXTERNAL to a C program for float data. But when support for floating data in MEDIAN was added, it was definitely faster than my CALL_EXTERNAL setup.

Having said that you might look at scaling your data to byte. The MEDIAN() is the midpoint of ordered data , and the order should be maintained after byte scaling (except that resolution is lost, so some nonequal values become equal). And MEDIAN is *much* faster on byte data.

--Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem in creating Postscript of "Transparent Histograms"
Next Topic: Re: map_continents and /fill... revisted

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

Current Time: Fri Oct 10 15:48:00 PDT 2025

Total time taken to generate the page: 0.80743 seconds