OpendTect
7.0
|
Tapers the N-dimentional ArrayND with a windowFunction. More...
Public Types | |
enum | WindowType { Box , Hamming , Hanning , Blackman , Bartlett , CosTaper5 , CosTaper10 , CosTaper20 } |
Public Member Functions | |
ArrayNDWindow (const ArrayNDInfo &, bool rectangular, const char *winnm, const TypeSet< float > ¶mvals) | |
ArrayNDWindow (const ArrayNDInfo &, bool rectangular, const char *winnm, float paramval=mUdf(float)) | |
ArrayNDWindow (const ArrayNDInfo &, bool rectangular, WindowType=Hamming) | |
~ArrayNDWindow () | |
template<class Type > | |
bool | apply (ArrayND< Type > *in, ArrayND< Type > *out_=0) const |
float | getParamVal (int dim=0) const |
float * | getValues () const |
bool | isOK () const |
bool | resize (const ArrayNDInfo &) |
void | setParamVal (int dim=0, float paramval=mUdf(float)) |
void | setParamVals (const TypeSet< float > &) |
bool | setType (const char *, const TypeSet< float > &) |
bool | setType (const char *, float paramval=mUdf(float)) |
bool | setType (WindowType) |
void | setValue (int idx, float val) |
Protected Member Functions | |
bool | buildWindow (const char *winnm) |
bool | buildWindow (const char *winnm, float pval) |
Protected Attributes | |
TypeSet< float > | paramval_ |
bool | rectangular_ |
ArrayNDInfoImpl | size_ |
float * | window_ |
BufferString | windowtypename_ |
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 | ( | const ArrayNDInfo & | , |
bool | rectangular, | ||
const char * | winnm, | ||
const TypeSet< float > & | paramvals | ||
) |
ArrayNDWindow::~ArrayNDWindow | ( | ) |
|
inline |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
bool ArrayNDWindow::resize | ( | const ArrayNDInfo & | ) |
void ArrayNDWindow::setParamVal | ( | int | dim = 0 , |
float | paramval = mUdf(float) |
||
) |
void ArrayNDWindow::setParamVals | ( | const TypeSet< float > & | ) |
bool ArrayNDWindow::setType | ( | const char * | , |
const TypeSet< float > & | |||
) |
bool ArrayNDWindow::setType | ( | const char * | , |
float | paramval = mUdf(float) |
||
) |
bool ArrayNDWindow::setType | ( | WindowType | ) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024