OpendTect  6.3
spectrogram.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: 9-3-1999
9 ________________________________________________________________________
10 
11 */
12 
13 #include "algomod.h"
14 #include "fourier.h"
15 
16 
26 {
27 public:
28  Spectrogram();
29  ~Spectrogram();
30 
31  bool init();
32  bool setInputInfo( const ArrayNDInfo& ni);
33  const ArrayNDInfo& getInputInfo() const;
34 
35  bool real2real() const { return true; }
36  bool real2complex() const { return false; }
37  bool complex2real() const { return false; }
38  bool complex2complex() const { return true; }
39  bool biDirectional() const { return false; }
40  bool getDir() const { return true; }
41  bool setDir( bool fwd ) { return fwd; }
42 
43  bool transform(const ArrayND<float>&,ArrayND<float>&);
44  bool transform(const ArrayND<float_complex>&,
46 protected:
47 
48  bool isPossible(int) const { return true; }
49  bool isFast(int sz) const { return fft_->isFast(sz); }
50 
54 };
#define mExpClass(module)
Definition: commondefs.h:157
Does Fourier Transforms of any size.
Definition: fourier.h:28
bool biDirectional() const
Definition: spectrogram.h:39
bool init()
Contains the information about the size of ArrayND, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:21
bool setDir(bool fwd)
Definition: spectrogram.h:41
Spectrogram calculates the spectrogram of a N-dimensional signal. The spectrogram is the square of th...
Definition: spectrogram.h:25
ArrayND< float_complex > * tempout_
Definition: spectrogram.h:52
bool isFast(int sz) const
Definition: spectrogram.h:49
ArrayND< float_complex > * tempin_
Definition: spectrogram.h:51
bool complex2real() const
Definition: spectrogram.h:37
bool isPossible(int) const
Definition: spectrogram.h:48
bool getDir() const
Definition: spectrogram.h:40
bool real2real() const
Definition: spectrogram.h:35
Fourier::CC * fft_
Definition: spectrogram.h:53
bool real2complex() const
Definition: spectrogram.h:36
bool complex2complex() const
Definition: spectrogram.h:38

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017