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

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