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

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