OpendTect-6_4  6.4
phase.h
Go to the documentation of this file.
1 #ifndef phase_h
2 #define phase_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A. Huck
9  Date: Dec 2013
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 #include "algomod.h"
16 #include "arrayndimpl.h"
17 #include "odcomplex.h"
18 
28 {
29 public:
30  Phase(const Array1DImpl<float_complex>& cfrequencies);
31  Phase(const Array1DImpl<float>& timesignal);
32  ~Phase();
33 
34  void setUnitDeg( bool indegrees ) { indegrees_ = indegrees; }
35  bool calculate();
36 
38  float getAvgPhase() const { return avgphase_; }
39  const Array1DImpl<float>& getPhase() const { return phase_; }
40 
41 protected:
45  float avgphase_;
46  bool indegrees_;
47 
48  void init();
49  bool extract();
50  bool convert();
51  bool unWrap(float maxdph=0.01777778f);
54 };
55 
56 
57 #endif
Phase calculates the phase distribution of a N-dimensional signal. The phase is the inverse tangent o...
Definition: phase.h:27
#define mExpClass(module)
Definition: commondefs.h:160
const Array1DImpl< float > & getPhase() const
Definition: phase.h:39
float avgphase_
Definition: phase.h:45
bool init()
int domfreqidx_
Definition: phase.h:44
Array1DImpl< float_complex > & cfreq_
Definition: phase.h:42
Array1DImpl< float > & phase_
Definition: phase.h:43
void setUnitDeg(bool indegrees)
Definition: phase.h:34
Definition: seistype.h:54
T convert(Type inptyp, T val, Type outtyp)
Definition: angles.h:76
bool indegrees_
Definition: phase.h:46
float getAvgPhase() const
Definition: phase.h:38

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