1 #ifndef arrayndsmoother_h 2 #define arrayndsmoother_h 64 , nrdims_(inp.info().getNDim())
69 for (
int idim=0; idim<
nrdims_; idim++ )
71 int dimsz =
inp_.info().getSize(idim);
84 for (
int idim=0; idim<
nrdims_; idim++ )
86 for (
int idx=0; idx<2; idx++ )
89 int& arridx = arridxs[idim];
98 if ( arridx < 0 ) arridx = 0;
100 vals +=
inp_.getND( arridxs.
arr() );
104 T smval = 0;
const int nrvals = vals.
size();
105 const T val0 =
inp_.getND( itpos );
106 for (
int idx=0; idx<nrvals; idx++ )
107 { smval += val0; smval += vals[idx]; }
109 out_.setND( itpos, smval );
ArrayND< T > & out_
Definition: arrayndsmoother.h:48
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
od_int64 totnr_
Definition: arrayndsmoother.h:49
#define od_int64
Definition: plftypes.h:36
Definition: uistring.h:89
static int MoreToDo()
Definition: task.h:143
virtual T * arr()
3rd party access
Definition: typeset.h:92
Gently smooths ArrayND by averaging with neighbours.
Definition: arrayndsmoother.h:30
static int Finished()
Definition: task.h:142
const ArrayND< T > & inp_
Definition: arrayndsmoother.h:47
virtual mODTextTranslationClass(ArrayNDGentleSmoother) public ~ArrayNDGentleSmoother()
Definition: arrayndsmoother.h:36
od_int64 nrDone() const
Definition: arrayndsmoother.h:40
od_int64 nrdone_
Definition: arrayndsmoother.h:50
out_[idx]
Definition: arrayndalgo.h:1702
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:33
Iterates through all samples in an ArrayND.
Definition: arraynd.h:179
uiString uiMessage() const
will be message() again in 7.x
Definition: arrayndsmoother.h:38
const int * getPos() const
Definition: arraynd.h:191
const int nrdims_
Definition: arrayndsmoother.h:51
od_int64 totalNr() const
Definition: arrayndsmoother.h:39
int nextStep()
Definition: arrayndsmoother.h:79
#define mClass(module)
Definition: commondefs.h:164
ArrayNDIter it_
Definition: arrayndsmoother.h:52
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: arrayndsmoother.h:41
TypeSet< int > maxidxs_
Definition: arrayndsmoother.h:53
Specification to enable chunkwise execution of a process.
Definition: executor.h:39