OpendTect  6.6
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  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "seismod.h"
14 #include "gendefs.h"
15 #include "odcomplex.h"
16 
17 class ArrayNDWindow;
18 class Wavelet;
19 template <class T> class Array1DImpl;
20 template <class T> class Array1D;
21 
23 {
24 public:
27 
28  void setNewWavelet(const Wavelet&);
30  void getPhase(Array1DImpl<float>&,bool degree=false) const;
31  float getAvgPhase(bool degree=false) const;
32  void getFrequency(Array1DImpl<float>&,int padfac=1);
33  //frequency array will be resized to padfac*array size )
34  void getPhaseRotated(float*,float phase) const;
36  void getCosTapered(float*,float) const;
37  bool getFreqFiltered(float*,float f1,float f2,
38  float f3,float f4) const;
40  void applyFreqWindow(const ArrayNDWindow&,int padfac,
43  static void transformBack(const Array1D<float_complex>& fftwvlt,
44  Array1D<float>& wvlt);
45 
46  static void unwrapPhase(int nrsamples,float wrapparam,float* phase);
48 
49 protected:
50 
52  int wvltsz_;
54  float sr_;
56 };
57 
WaveletAttrib::setNewWavelet
void setNewWavelet(const Wavelet &)
WaveletAttrib::getPhase
void getPhase(Array1DImpl< float > &, bool degree=false) const
WaveletAttrib::applyFreqWindow
void applyFreqWindow(const ArrayNDWindow &, int padfac, Array1DImpl< float > &)
Array1DImpl
Implementation of Array1D.
Definition: arrayndimpl.h:52
Seis
Summary for a Seismic object.
Definition: segydirectdef.h:22
WaveletAttrib::getWaveletArrForPhase
void getWaveletArrForPhase(Array1DImpl< float > &) const
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
WaveletAttrib::muteZeroFrequency
static void muteZeroFrequency(Array1DImpl< float > &)
Array1D
Array1D ( Subclass of ArrayND ) is a one dimensional array.
Definition: arraynd.h:111
WaveletAttrib
Definition: waveletattrib.h:23
WaveletAttrib::wvltarr_
Array1DImpl< float > * wvltarr_
Definition: waveletattrib.h:51
WaveletAttrib::getFreqFiltered
bool getFreqFiltered(float *, float f1, float f2, float f3, float f4) const
ArrayNDWindow
Tapers the N-dimentional ArrayND with a windowFunction.
Definition: arrayndalgo.h:349
WaveletAttrib::~WaveletAttrib
~WaveletAttrib()
gendefs.h
WaveletAttrib::WaveletAttrib
WaveletAttrib(const Wavelet &)
WaveletAttrib::transform
void transform(Array1D< float_complex > &, int sz=-1)
WaveletAttrib::getPhaseRotated
void getPhaseRotated(float *, float phase) const
WaveletAttrib::unwrapPhase
static void unwrapPhase(int nrsamples, float wrapparam, float *phase)
WaveletAttrib::getHilbert
void getHilbert(Array1DImpl< float > &) const
odcomplex.h
WaveletAttrib::sr_
float sr_
Definition: waveletattrib.h:54
WaveletAttrib::getCosTapered
void getCosTapered(float *, float) const
WaveletAttrib::wvltsz_
int wvltsz_
Definition: waveletattrib.h:52
Wavelet
Definition: wavelet.h:25
WaveletAttrib::centersample_
int centersample_
Definition: waveletattrib.h:53
WaveletAttrib::getAvgPhase
float getAvgPhase(bool degree=false) const
WaveletAttrib::transformBack
static void transformBack(const Array1D< float_complex > &fftwvlt, Array1D< float > &wvlt)
WaveletAttrib::getFrequency
void getFrequency(Array1DImpl< float > &, int padfac=1)

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