OpendTect-6_4  6.4
waveletattrib.h
Go to the documentation of this file.
1 #ifndef waveletattrib_h
2 #define waveletattrib_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Nageswara
8  Date: Nov 2009
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "seismod.h"
15 #include "gendefs.h"
16 #include "odcomplex.h"
17 
18 class ArrayNDWindow;
19 class Wavelet;
20 template <class T> class Array1DImpl;
21 template <class T> class Array1D;
22 
24 {
25 public:
26  WaveletAttrib(const Wavelet&);
27  ~WaveletAttrib();
28 
29  void setNewWavelet(const Wavelet&);
30  void getHilbert(Array1DImpl<float>&) const;
31  void getPhase(Array1DImpl<float>&,bool degree=false) const;
32  float getAvgPhase(bool degree=false) const;
33  void getFrequency(Array1DImpl<float>&,int padfac=1);
34  //frequency array will be resized to padfac*array size )
35  void getPhaseRotated(float*,float phase) const;
37  void getCosTapered(float*,float) const;
38  bool getFreqFiltered(float*,float f1,float f2,
39  float f3,float f4) const;
41  void applyFreqWindow(const ArrayNDWindow&,int padfac,
43  void transform(Array1D<float_complex>&,int sz=-1);
44  static void transformBack(const Array1D<float_complex>& fftwvlt,
45  Array1D<float>& wvlt);
46 
47  static void unwrapPhase(int nrsamples,float wrapparam,float* phase);
48  static void muteZeroFrequency(Array1DImpl<float>&);
49 
50 protected:
51 
53  int wvltsz_;
55  float sr_;
56  void getWaveletArrForPhase(Array1DImpl<float>&) const;
57 };
58 
59 #endif
Array1D ( Subclass of ArrayND ) is a one dimensional array.
Definition: arraynd.h:101
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
Tapers the N-dimentional ArrayND with a windowFunction.
Definition: arrayndalgo.h:309
int wvltsz_
Definition: waveletattrib.h:53
Array1DImpl< float > * wvltarr_
Definition: waveletattrib.h:52
Definition: wavelet.h:25
int centersample_
Definition: waveletattrib.h:54
Definition: waveletattrib.h:23
float sr_
Definition: waveletattrib.h:55
Implementation of Array1D.
Definition: arrayndimpl.h:52

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