FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-09-2009, 03:54 PM
km
Guest
 
Posts: n/a
Default Fast down sample filtering

Hi All,
Does anyone have a suggestion for a fast down sampling filter?
Reply With Quote
  #2 (permalink)  
Old 12-09-2009, 03:57 PM
Vladimir Vassilevsky
Guest
 
Posts: n/a
Default Re: Fast down sample filtering



km wrote:

> Hi All,
> Does anyone have a suggestion for a fast down sampling filter?


Do it yourself or hire a consultant?

VLV

Reply With Quote
  #3 (permalink)  
Old 12-09-2009, 05:04 PM
Darol Klawetter
Guest
 
Posts: n/a
Default Re: Fast down sample filtering

On Dec 9, 8:54*am, km <kylei...@gmail.com> wrote:
> Hi All,
> * Does anyone have a suggestion for a fast down sampling filter?


Please be more specific. What is sample rate of your input data? What
is your required downsampling rate? Is this for a hardware or software
implementation?

Darol Klawetter
Reply With Quote
  #4 (permalink)  
Old 12-09-2009, 06:16 PM
Eric Jacobsen
Guest
 
Posts: n/a
Default Re: Fast down sample filtering

On 12/9/2009 7:54 AM, km wrote:
> Hi All,
> Does anyone have a suggestion for a fast down sampling filter?


For N:1 reduction, add N consecutive samples together and output that.
Move to the next window of N samples.

The response will not be great, but it is, in fact, a fast down sampling
filter.

Case closed.

--
Eric Jacobsen
Minister of Algorithms
Abineau Communications
http://www.abineau.com
Reply With Quote
  #5 (permalink)  
Old 12-10-2009, 10:51 AM
Andor
Guest
 
Posts: n/a
Default Re: Fast down sample filtering

Eric Jacobsen wrote:
> On 12/9/2009 7:54 AM, km wrote:
>
> > Hi All,
> > * *Does anyone have a suggestion for a fast down sampling filter?

>
> For N:1 reduction, add N consecutive samples together and output that.
> * Move to the next window of N samples.
>
> The response will not be great, but it is, in fact, a fast down sampling
> filter.
>
> Case closed.


You think you are joking, but read this:

http://www.stereophile.com/features/104law/index1.html

BTW, an even faster downsampling algorithm is to simply sub-sample
(take every N-th sample).

Regards,
Andor
Reply With Quote
  #6 (permalink)  
Old 12-10-2009, 02:09 PM
Grant Griffin
Guest
 
Posts: n/a
Default Re: Fast down sample filtering

Eric Jacobsen wrote:
> On 12/9/2009 7:54 AM, km wrote:
>> Hi All,
>> Does anyone have a suggestion for a fast down sampling filter?

>
> For N:1 reduction, add N consecutive samples together and output that.
> Move to the next window of N samples.
>
> The response will not be great, but it is, in fact, a fast down sampling
> filter.
>
> Case closed.
>


Eric's suggestion is a very good one in terms of simplicity.
Conceptually, you can think of it as a moving average, followed by
Rune's suggestion of throwing out all but every Nth sample, aka,
downsampling.

However, if you want something fancier, you can use a decimation
algorithm. Decimation combines The ScopeFIR distribution file, which
contains an optimized and free/open decimation function in C, is
available at http://www.iowegian.com/download .

Also, decimation is a special case of the more general method of
resampling, which combines decimation with interpolation. Free
resampling software is online at
https://ccrma.stanford.edu/~jos/resa..._Software.html .

See dspGuru's Multirate FAQ at http://dspguru.com/dsp/faqs/multirate for
some introductory material on multirate topics like downsampling,
decimation, and resampling. <RTFFAQ>

Grant
--
__________________________________________________ ___________________

Grant R. Griffin
Publisher of dspGuru http://www.dspguru.com
Iowegian International Corporation http://www.iowegian.com
See http://www.iowegian.com/img/contact.gif for e-mail address
Reply With Quote
  #7 (permalink)  
Old 12-10-2009, 03:51 PM
Eric Jacobsen
Guest
 
Posts: n/a
Default Re: Fast down sample filtering

On 12/10/2009 2:51 AM, Andor wrote:
> Eric Jacobsen wrote:
>> On 12/9/2009 7:54 AM, km wrote:
>>
>>> Hi All,
>>> Does anyone have a suggestion for a fast down sampling filter?

>> For N:1 reduction, add N consecutive samples together and output that.
>> Move to the next window of N samples.
>>
>> The response will not be great, but it is, in fact, a fast down sampling
>> filter.
>>
>> Case closed.

>
> You think you are joking, but read this:
>
> http://www.stereophile.com/features/104law/index1.html
>
> BTW, an even faster downsampling algorithm is to simply sub-sample
> (take every N-th sample).
>
> Regards,
> Andor


I wasn't joking, it's just the simplest thing I could think of that
fully meets the OP's specifications. It's unlikely to be all that
useful in many, if not most, applications, but it meets the spec as stated.

Dropping all but every Nth sample doesn't "filter", which was part of
the OPs problem statement, so I didn't suggest that.

--
Eric Jacobsen
Minister of Algorithms
Abineau Communications
http://www.abineau.com
Reply With Quote
  #8 (permalink)  
Old 12-10-2009, 07:31 PM
glen herrmannsfeldt
Guest
 
Posts: n/a
Default Re: Fast down sample filtering

km <[email protected]> wrote:

> Does anyone have a suggestion for a fast down sampling filter?


Good question. I have been wondering for a while now how HDTV
receivers do the down conversion. At the frame rate they run at
and the available processing I am sure they don't do the full
add zero sample/filter/select sample method, especially not in
two dimensions.

Maybe a simple low pass filter and linear interpolation.
As simple as it can be and give reasonable results.

-- glen
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sensor fusion with Kalman filtering with different sensor sample rates? Sven DSP 1 10-13-2006 05:52 PM
Filtering of complete sample - FIR versus IIR versus FFT Ross Clement (Email address invalid - do not use) DSP 2 02-17-2006 04:06 PM
Filtering before changing sample rate Richard Owlett DSP 6 12-03-2005 02:57 PM
fractional-sample delay filtering Marc DSP 18 10-13-2005 03:22 PM
fast convolution overlap-scrap filtering with scrap at end Mark Borgerding DSP 1 02-03-2004 05:30 AM


All times are GMT +1. The time now is 01:53 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved