PSkel
 All Classes Files Functions
Public Member Functions
PSkel::Mask3D< T > Class Template Reference
Inheritance diagram for PSkel::Mask3D< T >:
PSkel::MaskBase< T >

List of all members.

Public Member Functions

 Mask3D (size_t size=0, T haloVal=T(0), size_t range=0)
__device__ __host__ void set (size_t n, int h, int w, int d, T weight=T(0))
template<typename V >
__forceinline__ __device__
__host__ T 
get (size_t n, Array3D< V > array, size_t h, size_t w, size_t d)
__device__ __host__ size_t getRange ()

template<typename T>
class PSkel::Mask3D< T >


Constructor & Destructor Documentation

template<typename T >
PSkel::Mask3D< T >::Mask3D ( size_t  size = 0,
haloVal = T(0),
size_t  range = 0 
)

The Mask3D constructor creates and allocates the specified 3-dimensional mask in the host memory.

Parameters:
[in]sizethe size of the 3D mask.
[in]haloValthe value used when the array is accessed out of bounds.
[in]rangethe range of the mask; if range is 0, it is calculated as the maximum absolute value on the mask.

Member Function Documentation

template<typename T >
template<typename V >
T PSkel::Mask3D< T >::get ( size_t  n,
Array3D< V >  array,
size_t  h,
size_t  w,
size_t  d 
)

Get the n-th neighbor from the specified input array.

Parameters:
[in]nthe index of the neighbor.
[in]arraythe input 3D array.
[in]hthe height index for the central element.
[in]wthe width index for the central element.
[in]dthe depth index for the central element.
Returns:
the n-th neighbor of the given central element, from the input array.
template<typename T >
void PSkel::Mask3D< T >::set ( size_t  n,
int  h,
int  w,
int  d,
weight = T(0) 
)

Set the mask information for accessing the n-th neighbor for a given element.

Parameters:
[in]nthe index of the neighbor.
[in]hthe height index translation needed for acessing the n-th neighbor.
[in]wthe width index translation needed for acessing the n-th neighbor.
[in]dthe depth index translation needed for acessing the n-th neighbor.
[in]weightthe weight defined for the n-th neighbor.

The documentation for this class was generated from the following files:
 All Classes Files Functions