OpendTect  6.6
instantattrib.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: Nanne Hemstra
8  Date: May 2005
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "attributesmod.h"
15 #include "attribprovider.h"
16 
17 namespace Attrib
18 {
19 
25 {
26 public:
27  static void initClass();
29 
30  static const char* attribName() { return "Instantaneous"; }
31  static const char* rotateAngle() { return "rotationangle"; }
32 
33 protected:
36  static void updateDesc(Desc&);
37 
38  bool getInputOutput(int in,TypeSet<int>& res) const;
39  bool getInputData(const BinID&, int);
40  bool computeData(const DataHolder&,const BinID& pos,
41  int t0,int nrsamples,
42  int threadid) const;
43 
44  const Interval<int>* reqZSampMargin(int,int) const;
45 
47  { return true; }
48 
53  int realidx_;
54  int imagidx_;
55  float rotangle_;
56 
57 private:
58  float calcAmplitude(int,int) const;
59  float calcPhase(int,int) const;
60  float calcFrequency(int,int) const;
61  float calcAmplitude1Der(int,int) const;
62  float calcAmplitude2Der(int,int) const;
63  float calcEnvWPhase(int,int) const;
64  float calcEnvWFreq(int,int) const;
65  float calcPhaseAccel(int,int) const;
66  float calcThinBed(int,int) const;
67  float calcBandWidth(int,int) const;
68  float calcQFactor(int,int) const;
69  float calcRotPhase(int,int,float angle) const;
70  float calcEnvWeighted(int,int,bool isphase) const;
71 };
72 
73 }; // namespace Attrib
74 
Attrib::Instantaneous::imagidx_
int imagidx_
Definition: instantattrib.h:54
Attrib::Instantaneous
Instantaneous Attribute
Definition: instantattrib.h:25
Attrib::Instantaneous::calcQFactor
float calcQFactor(int, int) const
Attrib::Instantaneous::calcPhase
float calcPhase(int, int) const
Attrib::Provider
Provides the actual output to ...
Definition: attribprovider.h:44
Attrib::Instantaneous::sampgate2_
Interval< int > sampgate2_
Definition: instantattrib.h:50
Attrib::Instantaneous::getInputData
bool getInputData(const BinID &, int)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Attrib::Instantaneous::realdata_
const DataHolder * realdata_
Definition: instantattrib.h:51
Attrib::Instantaneous::calcAmplitude1Der
float calcAmplitude1Der(int, int) const
Attrib::DataHolder
Holds the attribute data.
Definition: attribdataholder.h:43
Attrib::Instantaneous::initClass
static void initClass()
Attrib::Instantaneous::getInputOutput
bool getInputOutput(int in, TypeSet< int > &res) const
Attrib::Instantaneous::calcBandWidth
float calcBandWidth(int, int) const
Attrib::Instantaneous::calcEnvWPhase
float calcEnvWPhase(int, int) const
BinID
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
Attrib::Instantaneous::~Instantaneous
~Instantaneous()
Definition: instantattrib.h:34
Attrib::Instantaneous::calcAmplitude2Der
float calcAmplitude2Der(int, int) const
Attrib::Instantaneous::reqZSampMargin
const Interval< int > * reqZSampMargin(int, int) const
Attrib::Instantaneous::sampgate1_
Interval< int > sampgate1_
Definition: instantattrib.h:49
Attrib::Instantaneous::calcThinBed
float calcThinBed(int, int) const
Attrib::Instantaneous::allowParallelComputation
bool allowParallelComputation() const
Definition: instantattrib.h:46
Attrib::Instantaneous::calcRotPhase
float calcRotPhase(int, int, float angle) const
Attrib::Instantaneous::calcFrequency
float calcFrequency(int, int) const
Attrib::Instantaneous::attribName
static const char * attribName()
Definition: instantattrib.h:30
Attrib::Instantaneous::imagdata_
const DataHolder * imagdata_
Definition: instantattrib.h:52
Attrib::Instantaneous::createInstance
static Provider * createInstance(Desc &)
Attrib::Instantaneous::rotangle_
float rotangle_
Definition: instantattrib.h:55
Attrib::Instantaneous::calcEnvWeighted
float calcEnvWeighted(int, int, bool isphase) const
attribprovider.h
Attrib::Instantaneous::updateDesc
static void updateDesc(Desc &)
Attrib::Instantaneous::computeData
bool computeData(const DataHolder &, const BinID &pos, int t0, int nrsamples, int threadid) const
Attrib::Instantaneous::calcEnvWFreq
float calcEnvWFreq(int, int) const
Attrib::Instantaneous::calcAmplitude
float calcAmplitude(int, int) const
sKey::Attributes
FixedString Attributes()
Definition: keystrs.h:39
Attrib::Instantaneous::Instantaneous
Instantaneous(Desc &)
Attrib::Instantaneous::calcPhaseAccel
float calcPhaseAccel(int, int) const
Attrib
Semblance Attribute.
Definition: attribdataholder.h:25
Interval< int >
Attrib::Instantaneous::rotateAngle
static const char * rotateAngle()
Definition: instantattrib.h:31
Attrib::Desc
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g....
Definition: attribdesc.h:89
TypeSet< int >
Attrib::Instantaneous::realidx_
int realidx_
Definition: instantattrib.h:53

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