OpendTect  6.3
Public Member Functions | Public Attributes | List of all members
Terrain3x3< T > Class Template Reference

Sets up a terrain polynomial for a 3x3 grid from 2D regularly sampled data. More...

Public Member Functions

 Terrain3x3 (T dist, const T *zvals=0)
 
void set (const T *)
 
valueAt (T x, T y) const
 
slope () const
 
direction () const
 -pi < d < pi, or undef More...
 
profileCurvature () const
 curv in slope direction More...
 
planformCurvature () const
 curv perp to slope dir More...
 

Public Attributes

const T d_
 
const T d2_
 
a0_
 
ax_
 
ay_
 
axy_
 
ax2_
 
ay2_
 
ax2y_
 
ay2x_
 
ax2y2_
 

Detailed Description

template<class T>
class Terrain3x3< T >

Sets up a terrain polynomial for a 3x3 grid from 2D regularly sampled data.

After Zevenbergen and Thorne (1987), Earth Surface Processes and Landforms, Vol 12, 47-56. Substitutes:

A=>ax2y2_ B=>ay2x_ C=>ax2y_ D=>ax2_ E=>ay2_ F=>axy_ G=>ax_ H=>ay_ I=>a0_

Z1 (-1, 1) => v[2] Z2 ( 0, 1) => v[5] Z3 ( 1, 1) => v[8] Z4 (-1, 0) => v[1] Z5 ( 0, 0) => v[4] Z6 ( 1, 0) => v[7] Z7 (-1,-1) => v[0] Z8 ( 0,-1) => v[3] Z9 ( 1,-1) => v[6]

Beware that direction, profileCurvature and planformCurvature can return undef.

Constructor & Destructor Documentation

template<class T >
Terrain3x3< T >::Terrain3x3 ( dist,
const T *  zvals = 0 
)
inline

Member Function Documentation

template<class T >
T Terrain3x3< T >::direction ( ) const
inline

-pi < d < pi, or undef

template<class T >
T Terrain3x3< T >::planformCurvature ( ) const
inline

curv perp to slope dir

template<class T >
T Terrain3x3< T >::profileCurvature ( ) const
inline

curv in slope direction

template<class T >
void Terrain3x3< T >::set ( const T *  v)
inline

0=[-1,-1] 1=[-1,0] 2=[-1,1] 3=[ 0,-1] 4=[ 0,0] 5=[ 0,1] 6=[ 1,-1] 7=[ 1,0] 8=[ 1,1]

template<class T >
T Terrain3x3< T >::slope ( ) const
inline
template<class T >
T Terrain3x3< T >::valueAt ( x,
y 
) const
inline

Member Data Documentation

template<class T >
T Terrain3x3< T >::a0_
template<class T >
T Terrain3x3< T >::ax2_
template<class T >
T Terrain3x3< T >::ax2y2_
template<class T >
T Terrain3x3< T >::ax2y_
template<class T >
T Terrain3x3< T >::ax_
template<class T >
T Terrain3x3< T >::axy_
template<class T >
T Terrain3x3< T >::ay2_
template<class T >
T Terrain3x3< T >::ay2x_
template<class T >
T Terrain3x3< T >::ay_
template<class T >
const T Terrain3x3< T >::d2_
template<class T >
const T Terrain3x3< T >::d_

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