OpendTect-6_4
6.4
|
Tapers the N-dimentional ArrayND with a windowFunction. More...
Public Types | |
enum | WindowType { Box, Hamming, Hanning, Blackman, Bartlett, CosTaper5, CosTaper10, CosTaper20 } |
Public Member Functions | |
mDeclareEnumUtils (WindowType) | |
ArrayNDWindow (const ArrayNDInfo &, bool rectangular, WindowType=Hamming) | |
ArrayNDWindow (const ArrayNDInfo &, bool rectangular, const char *winnm, float paramval=mUdf(float)) | |
~ArrayNDWindow () | |
bool | isOK () const |
float | getParamVal () const |
float * | getValues () const |
void | setValue (int idx, float val) |
bool | setType (WindowType) |
bool | setType (const char *, float paramval=mUdf(float)) |
bool | resize (const ArrayNDInfo &) |
template<class Type > | |
bool | apply (ArrayND< Type > *in, ArrayND< Type > *out_=0) const |
Protected Member Functions | |
bool | buildWindow (const char *winnm, float pval) |
Protected Attributes | |
float * | window_ |
ArrayNDInfoImpl | size_ |
bool | rectangular_ |
BufferString | windowtypename_ |
float | paramval_ |
Tapers the N-dimentional ArrayND with a windowFunction.
Usage is straightforward- construct and use. If apply()'s second argument is omitted, the result will be placed in the input array. apply() will return false if input-, output- and window-size are not equal. The only requirement on the windowfunction is that it should give full taper at x=+-1 and no taper when x=0. Feel free to implement more functions!!
ArrayNDWindow::ArrayNDWindow | ( | const ArrayNDInfo & | , |
bool | rectangular, | ||
WindowType | = Hamming |
||
) |
ArrayNDWindow::ArrayNDWindow | ( | const ArrayNDInfo & | , |
bool | rectangular, | ||
const char * | winnm, | ||
float | paramval = mUdf(float) |
||
) |
ArrayNDWindow::~ArrayNDWindow | ( | ) |
|
inline |
|
protected |
|
inline |
|
inline |
|
inline |
ArrayNDWindow::mDeclareEnumUtils | ( | WindowType | ) |
bool ArrayNDWindow::resize | ( | const ArrayNDInfo & | ) |
bool ArrayNDWindow::setType | ( | WindowType | ) |
bool ArrayNDWindow::setType | ( | const char * | , |
float | paramval = mUdf(float) |
||
) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019