62 , nrdims_(inp.info().getNDim())
67 for (
int idim=0; idim<
nrdims_; idim++ )
69 int dimsz =
inp_.info().getSize(idim);
82 for (
int idim=0; idim<
nrdims_; idim++ )
84 for (
int idx=0; idx<2; idx++ )
87 int& arridx = arridxs[idim];
96 if ( arridx < 0 ) arridx = 0;
98 vals +=
inp_.getND( arridxs.
arr() );
102 T smval = 0;
const int nrvals = vals.
size();
103 const T val0 =
inp_.getND( itpos );
104 for (
int idx=0; idx<nrvals; idx++ )
105 { smval += val0; smval += vals[idx]; }
107 out_.setND( itpos, smval );
ArrayND< T > & out_
Definition: arrayndsmoother.h:46
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
od_int64 totnr_
Definition: arrayndsmoother.h:47
#define od_int64
Definition: plftypes.h:34
Definition: uistring.h:88
static int MoreToDo()
Definition: task.h:166
uiString nrDoneText() const
Definition: arrayndsmoother.h:39
virtual T * arr()
3rd party access
Definition: typeset.h:86
Gently smooths ArrayND by averaging with neighbours.
Definition: arrayndsmoother.h:28
static int Finished()
Definition: task.h:165
const ArrayND< T > & inp_
Definition: arrayndsmoother.h:45
virtual mODTextTranslationClass(ArrayNDGentleSmoother) public ~ArrayNDGentleSmoother()
Definition: arrayndsmoother.h:34
od_int64 nrDone() const
Definition: arrayndsmoother.h:38
od_int64 nrdone_
Definition: arrayndsmoother.h:48
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:29
Iterates through all samples in an ArrayND.
Definition: arraynd.h:175
const int * getPos() const
Definition: arraynd.h:187
const int nrdims_
Definition: arrayndsmoother.h:49
od_int64 totalNr() const
Definition: arrayndsmoother.h:37
int nextStep()
Definition: arrayndsmoother.h:77
#define mClass(module)
Definition: commondefs.h:161
ArrayNDIter it_
Definition: arrayndsmoother.h:50
TypeSet< int > maxidxs_
Definition: arrayndsmoother.h:51
uiString message() const
Definition: arrayndsmoother.h:36
Specification to enable chunkwise execution of a process.
Definition: executor.h:38