OpendTect  6.3
hilbertattrib.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: N. Hemstra
8  Date: May 2005
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "attributesmod.h"
14 #include "attribprovider.h"
15 
16 namespace Attrib
17 {
18 
24 {
25 public:
26  static void initClass();
27  Hilbert(Desc&);
28 
29  static const char* attribName() { return "Hilbert"; }
30  static const char* halflenStr() { return "halflen"; }
31 
32 protected:
33  static Provider* createInstance(Desc&);
34 
35  bool getInputOutput(int inp,TypeSet<int>& res) const;
36  bool getInputData(const BinID&, int);
37  bool computeData(const DataHolder&,const BinID& pos,
38  int z0,int nrsamples,
39  int threadid) const;
40 
42  { return true; }
43  const Interval<int>* desZSampMargin(int input,int output) const
44  { return &zmargin_; }
45 
47  int dataidx_;
48 
50  int halflen_;
51 
52  const float* hilbfilter_;
53 };
54 
55 } // namespace Attrib
int halflen_
Definition: hilbertattrib.h:50
#define mExpClass(module)
Definition: commondefs.h:157
Interval< int > zmargin_
Definition: hilbertattrib.h:49
const float * hilbfilter_
Definition: hilbertattrib.h:52
Calculates Hilbert transform.
Definition: hilbertattrib.h:23
static const char * halflenStr()
Definition: hilbertattrib.h:30
FixedString Attributes()
Definition: keystrs.h:38
const DataHolder * inputdata_
Definition: hilbertattrib.h:46
static const char * attribName()
Definition: hilbertattrib.h:29
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:87
Holds the attribute data.
Definition: attribdataholder.h:39
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
const Interval< int > * desZSampMargin(int input, int output) const
Definition: hilbertattrib.h:43
bool allowParallelComputation() const
Definition: hilbertattrib.h:41
Provides the actual output to ...
Definition: attribprovider.h:40
int dataidx_
Definition: hilbertattrib.h:47
void Hilbert(int n, float *x, float *y)
static void initClass()
Semblance Attribute.
Definition: attribdataholder.h:21

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