 |
OpendTect
6.6
|
Go to the documentation of this file.
63 , nrdims_(inp.info().getNDim())
68 for (
int idim=0; idim<
nrdims_; idim++ )
70 int dimsz =
inp_.info().getSize(idim);
80 const int* itpos = it_.getPos();
83 for (
int idim=0; idim<nrdims_; idim++ )
85 for (
int idx=0; idx<2; idx++ )
88 int& arridx = arridxs[idim];
92 if ( arridx > maxidxs_[idim] ) arridx = maxidxs_[idim];
97 if ( arridx < 0 ) arridx = 0;
99 vals += inp_.getND( arridxs.arr() );
103 T smval = 0;
const int nrvals = vals.size();
104 const T val0 = inp_.getND( itpos );
105 for (
int idx=0; idx<nrvals; idx++ )
106 { smval += val0; smval += vals[idx]; }
108 out_.setND( itpos, smval );
111 return it_.next() ? MoreToDo() : Finished();
od_int64 totnr_
Definition: arrayndsmoother.h:48
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: arrayndsmoother.h:40
TypeSet< int > maxidxs_
Definition: arrayndsmoother.h:52
#define od_int64
Definition: plftypes.h:35
Gently smooths ArrayND by averaging with neighbours.
Definition: arrayndsmoother.h:30
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uiString uiMessage() const
will be message() again in 7.x
Definition: arrayndsmoother.h:37
od_int64 nrdone_
Definition: arrayndsmoother.h:49
od_int64 totalNr() const
Definition: arrayndsmoother.h:38
const int nrdims_
Definition: arrayndsmoother.h:50
#define mClass(module)
Definition: commondefs.h:181
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
Iterates through all samples in an ArrayND.
Definition: arraynd.h:209
const ArrayND< T > & inp_
Definition: arrayndsmoother.h:46
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:33
ArrayND< T > & out_
Definition: arrayndsmoother.h:47
od_int64 nrDone() const
Definition: arrayndsmoother.h:39
int nextStep()
Definition: arrayndsmoother.h:78
ArrayNDIter it_
Definition: arrayndsmoother.h:51
out_[idx]
Definition: arrayndalgo.h:1709
virtual mODTextTranslationClass(ArrayNDGentleSmoother) public ~ArrayNDGentleSmoother()
Definition: arrayndsmoother.h:35
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021