OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 */
13 
14 #include "algomod.h"
15 #include "arrayndimpl.h"
16 #include "odcomplex.h"
17 
27 {
28 public:
29  Phase(const Array1DImpl<float_complex>& cfrequencies);
30  Phase(const Array1DImpl<float>& timesignal);
31  ~Phase();
32 
33  void setUnitDeg( bool indegrees ) { indegrees_ = indegrees; }
34  bool calculate(bool unwrap=false);
35 
37  float getAvgPhase() const { return avgphase_; }
38  const Array1DImpl<float>& getPhase() const { return phase_; }
39 
40 protected:
44  float avgphase_;
45  bool indegrees_;
46 
47  void init();
48  bool extract();
49  bool convert();
50  bool unWrap(float maxdph=0.01777778f);
53 };
54 
55 
Array1DImpl< float_complex >
Phase::calculate
bool calculate(bool unwrap=false)
Available after execution - in the Bandwidth.
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Phase::Phase
Phase(const Array1DImpl< float > &timesignal)
Phase::domfreqidx_
int domfreqidx_
Definition: phase.h:43
arrayndimpl.h
Phase::cfreq_
Array1DImpl< float_complex > & cfreq_
Definition: phase.h:41
Phase::extract
bool extract()
Phase::phase_
Array1DImpl< float > & phase_
Definition: phase.h:42
Phase
Phase calculates the phase distribution of a N-dimensional signal. The phase is the inverse tangent o...
Definition: phase.h:27
Phase::unWrap
bool unWrap(float maxdph=0.01777778f)
Phase::setUnitDeg
void setUnitDeg(bool indegrees)
Definition: phase.h:33
Phase::indegrees_
bool indegrees_
Definition: phase.h:45
Phase::getAvgPhase
float getAvgPhase() const
Definition: phase.h:37
Phase::~Phase
~Phase()
Phase::convert
bool convert()
odcomplex.h
Phase::init
void init()
Phase::getPhase
const Array1DImpl< float > & getPhase() const
Definition: phase.h:38
Phase::avgphase_
float avgphase_
Definition: phase.h:44
Phase::Phase
Phase(const Array1DImpl< float_complex > &cfrequencies)

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