MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
mds::img::CBicubic< I > Class Template Reference

Bicubic interpolation. More...

#include <mdsInterpolate.h>

Inheritance diagram for mds::img::CBicubic< I >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE }
 Check that I is an image. More...
typedef CImageInterpolator< I > tBase
 Base types.
typedef tBase::tImage tImage
 Image type.
typedef tBase::tPixel tPixel
 Image pixel type.

Public Member Functions

 CBicubic (tCoordinate a=-0.75f)
 Default constructor.
tPixel interpolate (const tImage &Image, tCoordinate x, tCoordinate y)
 Returns the interpolated subpixel value.
void setParam (tCoordinate a)
 Sets parameters of the Bicubic interpolation.

Protected Member Functions

tCoordinate calcWeight1 (tCoordinate x)
 Calculates concrete pixel weight (0<x<1).
tCoordinate calcWeight2 (tCoordinate x)
 Calculates concrete pixel weight (1<x<2).

Protected Attributes

tCoordinate m_A
 Optional parameter of the bicubic interpolation.

Detailed Description

template<class I>
class mds::img::CBicubic< I >

Bicubic interpolation.


Member Typedef Documentation

template<class I >
typedef CImageInterpolator<I> mds::img::CBicubic< I >::tBase

Base types.

template<class I >
typedef tBase::tImage mds::img::CBicubic< I >::tImage

Image type.

Reimplemented from mds::img::CImageInterpolator< I >.

template<class I >
typedef tBase::tPixel mds::img::CBicubic< I >::tPixel

Image pixel type.

Reimplemented from mds::img::CImageInterpolator< I >.


Member Enumeration Documentation

template<class I >
anonymous enum [inherited]

Check that I is an image.

You will see name of this enum somewhere in compiler error message if the type I is not image.

Enumerator:
TEMPLATE_PARAMETER_IS_NOT_IMAGE 

Constructor & Destructor Documentation

template<class I >
mds::img::CBicubic< I >::CBicubic ( tCoordinate  a = -0.75f)

Default constructor.


Member Function Documentation

template<class I >
tCoordinate mds::img::CBicubic< I >::calcWeight1 ( tCoordinate  x) [protected]

Calculates concrete pixel weight (0<x<1).

template<class I >
tCoordinate mds::img::CBicubic< I >::calcWeight2 ( tCoordinate  x) [protected]

Calculates concrete pixel weight (1<x<2).

template<class I >
tPixel mds::img::CBicubic< I >::interpolate ( const tImage Image,
tCoordinate  x,
tCoordinate  y 
)

Returns the interpolated subpixel value.

template<class I >
void mds::img::CBicubic< I >::setParam ( tCoordinate  a)

Sets parameters of the Bicubic interpolation.


Member Data Documentation

template<class I >
tCoordinate mds::img::CBicubic< I >::m_A [protected]

Optional parameter of the bicubic interpolation.


The documentation for this class was generated from the following file: