OpendTect-6_4  6.4
textureattrib.h
Go to the documentation of this file.
1 #ifndef textureattrib_h
2 #define textureattrib_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: P.F.M. de Groot
9  Date: September 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "attribprovider.h"
17 #include "arraynd.h"
18 
33 namespace Attrib
34 {
35 
36 mClass(TextureAttrib) Texture : public Provider
38 public:
39  static void initClass();
40  Texture(Desc&);
41 
42  static const char* attribName() { return "Texture"; }
43  static const char* steeringStr() { return "steering"; }
44  static const char* stepoutStr() { return "stepout"; }
45  static const char* gateStr() { return "gate"; }
46  static const char* glcmsizeStr() { return "glcmsize"; }
47  static const char* globalminStr() { return "globalmin"; }
48  static const char* globalmaxStr() { return "globalmax"; }
49 
50  void initSteering() { stdPrepSteering(stepout_); }
51  void prepareForComputeData();
52 
53 protected:
54  ~Texture() {}
55  static Provider* createInstance(Desc&);
56  static void updateDefaults(Desc&);
57 
58  bool allowParallelComputation() const;
59 
60  bool getInputOutput(int input,TypeSet<int>& res) const;
61  bool getInputData(const BinID&,int zintv);
62  bool computeData(const DataHolder&,const BinID& relpos,
63  int z0,int nrsamples,int threadid) const;
64  const BinID* desStepout(int,int) const;
65  const BinID* reqStepout(int,int) const;
66  const Interval<int>* desZSampMargin(int,int) const;
67  int scaleVal(float) const;
68  void setFactorShift(float,float);
69 
70  int glcmsize_;
73  float globalmin_;
74  float globalmax_;
75 
80 
82  {
86  };
87 
89 
91  int dataidx_;
93  int computeGLCM(int idx,int z0,Array2D<int>&) const;
94  void fillGLCM(int sampleidx,int z0,int posidx1,int posidx2,
95  int& glcmcount,Array2D<int>& glcm) const;
96 };
97 
98 } // namespace Attrib
99 
100 #endif
float globalmin_
Definition: textureattrib.h:73
float scalingfactor_
Definition: textureattrib.h:71
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Interval< int > sampgate_
Definition: textureattrib.h:76
BinID stepout_
Definition: textureattrib.h:79
TypeSet< int > steeridx_
Definition: textureattrib.h:83
Set of pointers to objects.
Definition: commontypes.h:32
TypeSet< BinID > pos_
Definition: textureattrib.h:84
ObjectSet< const DataHolder > inpdata_
Definition: textureattrib.h:90
void initSteering()
Definition: textureattrib.h:50
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
static const char * stepoutStr()
Definition: textureattrib.h:44
static const char * gateStr()
Definition: textureattrib.h:45
Interval< float > gate_
Definition: textureattrib.h:77
PosAndSteeridx posandsteeridx_
Definition: textureattrib.h:88
static const char * globalminStr()
Definition: textureattrib.h:47
float globalmax_
Definition: textureattrib.h:74
Definition: textureattrib.h:81
static const char * globalmaxStr()
Definition: textureattrib.h:48
~Texture()
Definition: textureattrib.h:54
Holds the attribute data.
Definition: attribdataholder.h:43
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
static const char * attribName()
Definition: textureattrib.h:42
float scalingshift_
Definition: textureattrib.h:72
int glcmsize_
Definition: textureattrib.h:70
Provides the actual output to ...
Definition: attribprovider.h:44
Interval< int > dessampgate_
Definition: textureattrib.h:78
static const char * steeringStr()
Definition: textureattrib.h:43
const DataHolder * steeringdata_
Definition: textureattrib.h:92
#define mClass(module)
Definition: commondefs.h:164
int dataidx_
Definition: textureattrib.h:91
static const char * glcmsizeStr()
Definition: textureattrib.h:46
Definition: textureattrib.h:36
static void initClass()
TypeSet< int > posidx_
Definition: textureattrib.h:85
Semblance Attribute.
Definition: attribdataholder.h:25

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