# Gabor transform to GNU Radio

**URL:** <https://www.ruby-forum.com/t/gabor-transform-to-gnu-radio/229267>\
**Category:** GNU Radio\
**Created:** [January 15, 2013, 4:35pm UTC](https://www.ruby-forum.com/t/gabor-transform-to-gnu-radio/229267 "2013-01-15T16:35:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriatik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@adriatik](https://www.ruby-forum.com/u/adriatik)\
**Post date:** [January 15, 2013, 4:35pm UTC](https://www.ruby-forum.com/t/gabor-transform-to-gnu-radio/229267/1 "2013-01-15T16:35:40Z")

</div>

Hi everyone!Anyone know if there is a block or a function on GNU Radio  
for make Gabor transform?

Thanks!  
AA

---

<div class="post-metadata">

**Author:** ![adriatik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@adriatik](https://www.ruby-forum.com/u/adriatik)\
**Post date:** [January 15, 2013, 6:23pm UTC](https://www.ruby-forum.com/t/gabor-transform-to-gnu-radio/229267/2 "2013-01-15T18:23:46Z")

</div>

Hi Adriana,

We currently do not (directly) support STFTs in GNU Radio. If you can  
go with a wavelet transform instead you might want to have a look at  
gr-wavelet & gsl.  
Otherwise maybe you can take some of our fftw based code and modify it  
into doing STFTs? Keep us posted if you get it working, or need help.

Cheers,

Moritz

---

<div class="post-metadata">

**Author:** ![adriatik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@adriatik](https://www.ruby-forum.com/u/adriatik)\
**Post date:** [January 21, 2013, 4:57pm UTC](https://www.ruby-forum.com/t/gabor-transform-to-gnu-radio/229267/3 "2013-01-21T16:57:16Z")

</div>

Hi Martin!

The flow graph for STFT will be:

```
              Gaussian window---|
                                ---> Multiply

```

Signal-\>stream to vector → FFT-----|

Or I need an additional block?

Thanks!

AA

Martin B. (CEL) wrote in post #1092409:

> On Tue, Jan 15, 2013 at 09:22:53AM -0800, Moritz Fischer wrote:
> 
> > Hi Adriana,
> > 
> > We currently do not (directly) support STFTs in GNU Radio. If you can  
> > go with a wavelet transform instead you might want to have a look at  
> > gr-wavelet & gsl.  
> > Otherwise maybe you can take some of our fftw based code and modify it  
> > into doing STFTs? Keep us posted if you get it working, or need help.
> 
> Indirectly, STFT can be calc’d by stream-to-vector and then FFT, so  
> it’s not hard with GNU Radio. If you want averaging, gr-specest should  
> have all you need.
> 
> The Gaussian window should be available through gr::firdes.
> 
> MB
> 
> –  
> Karlsruhe Institute of Technology (KIT)  
> Communications Engineering Lab (CEL)
> 
> Dipl.-Ing. Martin B.  
> Research Associate
> 
> Kaiserstraße 12  
> Building 05.01  
> 76131 Karlsruhe
> 
> Phone: +49 721 608-43790  
> Fax: +49 721 608-46071  
> www.cel.kit.edu
> 
> KIT – University of the State of Baden-Württemberg and  
> National Laboratory of the Helmholtz Association

---

<div class="post-metadata">

**Author:** ![adriatik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@adriatik](https://www.ruby-forum.com/u/adriatik)\
**Post date:** [January 15, 2013, 6:43pm UTC](https://www.ruby-forum.com/t/gabor-transform-to-gnu-radio/229267/4 "2013-01-15T18:43:03Z")

</div>

On Tue, Jan 15, 2013 at 09:22:53AM -0800, Moritz Fischer wrote:

> Hi Adriana,
> 
> We currently do not (directly) support STFTs in GNU Radio. If you can  
> go with a wavelet transform instead you might want to have a look at  
> gr-wavelet & gsl.  
> Otherwise maybe you can take some of our fftw based code and modify it  
> into doing STFTs? Keep us posted if you get it working, or need help.

Indirectly, STFT can be calc’d by stream-to-vector and then FFT, so  
it’s not hard with GNU Radio. If you want averaging, gr-specest should  
have all you need.

The Gaussian window should be available through gr::firdes.

MB

–  
Karlsruhe Institute of Technology (KIT)  
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.  
Research Associate

Kaiserstraße 12  
Building 05.01  
76131 Karlsruhe

Phone: +49 721 608-43790  
Fax: +49 721 608-46071  
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and  
National Laboratory of the Helmholtz Association
