OpendTect-6_4  6.4
Classes | Functions
undefarray.h File Reference
Include dependency graph for undefarray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UndefArrayHandler
 Class that handles undefvalues in arrays that are in a format described by a BinDataDesc. More...
 

Functions

template<class T >
bool filterUndef (const T *input, T *output, int sz)
 
template<class T >
bool filterUndef (const ValueSeries< T > &input, ValueSeries< T > &output, int)
 
template<class T >
bool filterUndef (const ValueSeries< T > &input, T *outptr, int sz)
 

Function Documentation

template<class T >
bool filterUndef ( const T *  input,
T *  output,
int  sz 
)
inline

Filter out undefined values and replaces them by a linear interpolation of surrounding defined values. If undefined values are found at start/end, they are replaced by the first/last defined value. Input and output may be the same.

Returns
true if success, false if no defined value was found.
template<class T >
bool filterUndef ( const ValueSeries< T > &  input,
ValueSeries< T > &  output,
int  sz 
)
inline
template<class T >
bool filterUndef ( const ValueSeries< T > &  input,
T *  outptr,
int  sz 
)
inline

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