OpendTect-6_4  6.4
hilbertattrib.h
Go to the documentation of this file.
1 #ifndef hilbertattrib_h
2 #define hilbertattrib_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: N. Hemstra
9  Date: May 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "attributesmod.h"
16 #include "attribprovider.h"
17 
18 namespace Attrib
19 {
20 
26 {
27 public:
28  static void initClass();
29  Hilbert(Desc&);
30 
31  static const char* attribName() { return "Hilbert"; }
32  static const char* halflenStr() { return "halflen"; }
33 
34 protected:
35  static Provider* createInstance(Desc&);
36 
37  bool getInputOutput(int inp,TypeSet<int>& res) const;
38  bool getInputData(const BinID&, int);
39  bool computeData(const DataHolder&,const BinID& pos,
40  int z0,int nrsamples,
41  int threadid) const;
42 
44  { return true; }
45  const Interval<int>* desZSampMargin(int input,int output) const
46  { return &zmargin_; }
47 
49  int dataidx_;
50 
52  int halflen_;
53 
54  const float* hilbfilter_;
55 };
56 
57 }; // namespace Attrib
58 
59 #endif
int halflen_
Definition: hilbertattrib.h:52
#define mExpClass(module)
Definition: commondefs.h:160
Interval< int > zmargin_
Definition: hilbertattrib.h:51
const float * hilbfilter_
Definition: hilbertattrib.h:54
Calculates Hilbert transform.
Definition: hilbertattrib.h:25
static const char * halflenStr()
Definition: hilbertattrib.h:32
FixedString Attributes()
Definition: keystrs.h:40
const DataHolder * inputdata_
Definition: hilbertattrib.h:48
static const char * attribName()
Definition: hilbertattrib.h:31
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected.
Definition: attribdesc.h:89
Holds the attribute data.
Definition: attribdataholder.h:43
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
const Interval< int > * desZSampMargin(int input, int output) const
Definition: hilbertattrib.h:45
bool allowParallelComputation() const
Definition: hilbertattrib.h:43
Provides the actual output to ...
Definition: attribprovider.h:44
int dataidx_
Definition: hilbertattrib.h:49
void Hilbert(int n, float *x, float *y)
static void initClass()
Semblance Attribute.
Definition: attribdataholder.h:25

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