OpendTect  6.3
phase.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: A. Huck
8  Date: Dec 2013
9 ________________________________________________________________________
10 
11 */
12 
13 #include "algomod.h"
14 #include "arrayndimpl.h"
15 #include "odcomplex.h"
16 
26 {
27 public:
28  Phase(const Array1DImpl<float_complex>& cfrequencies);
29  Phase(const Array1DImpl<float>& timesignal);
30  ~Phase();
31 
32  void setUnitDeg( bool indegrees ) { indegrees_ = indegrees; }
33  bool calculate();
34 
36  float getAvgPhase() const { return avgphase_; }
37  const Array1DImpl<float>& getPhase() const { return phase_; }
38 
39 protected:
43  float avgphase_;
44  bool indegrees_;
45 
46  void init();
47  bool extract();
48  bool convert();
49  bool unWrap(float maxdph=0.01777778f);
52 };
Phase calculates the phase distribution of a N-dimensional signal. The phase is the inverse tangent o...
Definition: phase.h:25
#define mExpClass(module)
Definition: commondefs.h:157
const Array1DImpl< float > & getPhase() const
Definition: phase.h:37
float avgphase_
Definition: phase.h:43
bool init()
int domfreqidx_
Definition: phase.h:42
Array1DImpl< float_complex > & cfreq_
Definition: phase.h:40
Array1DImpl< float > & phase_
Definition: phase.h:41
void setUnitDeg(bool indegrees)
Definition: phase.h:32
Definition: seistype.h:52
T convert(Type inptyp, T val, Type outtyp)
Definition: angles.h:74
bool indegrees_
Definition: phase.h:44
float getAvgPhase() const
Definition: phase.h:36

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