zxhproj v 2.2
zxhproj

zxhImageModelingBaseT< PixelType, DerivativeType > Class Template Reference

image modeling base class use for getting pixel, gradient, different claas stands for different interpolation Here: pixelvalue and gradient type should be float type for registration image modeling, the pixeltype is default PixelTypeDefault(short) the template only used in interpolate the bspline ffd implemented derived sub-class, Nearest, Linear, BSpline(1D,2D,3D,3D+1D) More...

#include <zxhImageModelingBase.h>

Inheritance diagram for zxhImageModelingBaseT< PixelType, DerivativeType >:
zxhImageModelingBsplineT< PixelType, DerivativeType > zxhImageModelingLinearT< PixelType, DerivativeType >

List of all members.

Public Types

typedef float PixelFloatType
 typedef
typedef float DerivativeFloatType
 typedef

Public Member Functions

 zxhImageModelingBaseT (void)
 constructor
 ~zxhImageModelingBaseT (void)
virtual void SetImage (zxhImageDataT< PixelType > *pImage)
virtual zxhImageDataT
< PixelType > * 
GetImage ()
virtual zxhImageModelingBaseT
< PixelType, DerivativeType > * 
Clone (zxhImageModelingBaseT< PixelType, DerivativeType > *&pRet)
virtual PixelFloatType GetPixelFloatValueWithCheck (float fx, float fy, float fz=0, float ft=0)
 closest
virtual PixelFloatType GetPixelFloatValueWithCheckClosest (float fx, float fy, float fz=0, float ft=0)
virtual PixelFloatType GetPixelFloatValueWithoutCheck (float fx, float fy)
 without boundary check, assume [] 0~size-1, diff from different modelling
virtual PixelFloatType GetPixelFloatValueWithoutCheck (float fx, float fy, float fz)
 without boundary check
virtual PixelFloatType GetPixelFloatValueWithoutCheck (float fx, float fy, float fz, float ft)
 without boundary check
virtual void GetPixelGradientByWorld (DerivativeType pwGrad[ImageDimensionMax], float wx, float wy=0, float wz=0, float wt=0)
virtual void GetPixelGradient (DerivativeType pwGrad[ImageDimensionMax], float x, float y=0, float z=0, float t=0)
 Image Gradient of nearest modeling.
virtual void GetPixelPhysicalGradientOnImageGridCoordinate (DerivativeType phyGrad[ImageDimensionMax], float x, float y=0, float z=0, float t=0)
 todo
virtual DerivativeType GetPixelGradientMagnitude (float x, float y=0, float z=0, float t=0)
virtual DerivativeType GetPixelGradientMagnitudeMax ()
virtual DerivativeType GetPixelGradientMagnitudeMin ()
virtual DerivativeType GetPixelPhysicalPartialDiff (zxh::ImageModeling_XYZ dim, float x, float y=0, float z=0, float t=0)
 partial differential on physical coordinate using image grid index
virtual bool ResizeImage (const int size[], const float spacing[])
 resize image
virtual bool ResizeImage (const float spacing[])
 resize using spacing
virtual bool ResizeImage (const zxhImageInfo *imageinfo)
virtual bool FowardTransformImageUsingInverse (zxhImageDataT< PixelType > *pSave, zxhTransformBase *pTransform)
virtual bool BackwardTransformImage (zxhImageDataT< PixelType > *pSave, zxhTransformBase *pTransform)
 fill background ZXH_Background
virtual bool BackwardTransformImageMirrorOutlier (zxhImageDataT< PixelType > *pSave, zxhTransformBase *pTransform)
 1) if m_pImage is 2D, then make it 3D by adding two slices with spacing sp3d ;
PixelFloatType GetPixelFloatValueWithCheckMirror (float fx, float fy, float fz=0, float ft=0)
 interpolation pixel value, with outlier using mirror reflect and then GetPixelFloatValueWithoutCheck
PixelFloatType GetPixelFloatValueWithCheckBk (PixelFloatType bk, float fx, float fy, float fz=0, float ft=0)
PixelFloatType GetPixelFloatValueWithCheckByWorld (float fx, float fy, float fz=0, float ft=0)
 get the pixel by world coordinate
PixelFloatType GetPixelFloatValueWithCheckMirrorByWorld (float fx, float fy, float fz=0, float ft=0)
 get the pixel by physical coordinate
PixelFloatType GetPixelFloatValueWithCheckBkByWorld (PixelFloatType bk, float fx, float fy, float fz=0, float ft=0)
 get the pixel by physical coordinate

Protected Attributes

zxhImageDataT< PixelType > * m_pImage

Detailed Description

template<class PixelType = PixelTypeDefault, class DerivativeType = float>
class zxhImageModelingBaseT< PixelType, DerivativeType >

image modeling base class use for getting pixel, gradient, different claas stands for different interpolation Here: pixelvalue and gradient type should be float type for registration image modeling, the pixeltype is default PixelTypeDefault(short) the template only used in interpolate the bspline ffd implemented derived sub-class, Nearest, Linear, BSpline(1D,2D,3D,3D+1D)


Constructor & Destructor Documentation

template<class PixelType = PixelTypeDefault, class DerivativeType = float>
zxhImageModelingBaseT< PixelType, DerivativeType >::~zxhImageModelingBaseT ( void  ) [inline]
Returns:

Member Function Documentation

template<class PixelType = PixelTypeDefault, class DerivativeType = float>
virtual zxhImageDataT<PixelType>* zxhImageModelingBaseT< PixelType, DerivativeType >::GetImage ( ) [inline, virtual]
Returns:
template<class PixelType = PixelTypeDefault, class DerivativeType = float>
virtual DerivativeType zxhImageModelingBaseT< PixelType, DerivativeType >::GetPixelGradientMagnitude ( float  x,
float  y = 0,
float  z = 0,
float  t = 0 
) [inline, virtual]
Returns:

Member Data Documentation

template<class PixelType = PixelTypeDefault, class DerivativeType = float>
zxhImageDataT<PixelType>* zxhImageModelingBaseT< PixelType, DerivativeType >::m_pImage [protected]
Returns:

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs