Median Filter Code
Bob Shaver email (remove spam text)
This message thread was "Re: A/D Filtering"
On Friday, October 02, 1998 7:50 AM, Lawrence Lile
[SMTP:TOASTMASTER.COM] wrote: lilel
> I've loaded a nice median routine on my web page cited below - take a
> look at it.
> -- Lawrence Lile
> => Median Filter Source Code
> => AutoCad blocks for electrical drafting
> at: http://home1.gte.net/llile/index.htm
I looked at your median filter code (a very quick look, only a couple of
minutes) and was wondering how you handle inputting data samples once you
fill up the filter array. The current code simply overwrites the 1st
element (i.e. the highest sorted value) with the new data. I believe the
program needs to keep an un-sorted array that acts as a FIFO (first-in
first-out) for storing the 16 most-recent data samples. Then sort this
data into another array to pick the median value.
Am I missing something in your existing code?
Practical Micro Design, Inc.
See also: www.piclist.com/techref/logic/dsps.htm?key=filter
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the