piclist 1998\10\07\153548a >
Thread: Median Filter Code
www.piclist.com/techref/logic/dsps.htm?key=filter
flavicon
face BY : 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:spamlilel.....spamEraseMETOASTMASTER.COM] wrote:
> 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

Lawrence,

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?

Bob Shaver
Practical Micro Design, Inc.

<01BDF207.C38ECB10.bobs@pmdinc.com> 7bit

See also: www.piclist.com/techref/logic/dsps.htm?key=filter
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Median Filter Code

month overview.

new search...