zxhproj v 2.2
zxhproj
|
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>
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 |
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)
zxhImageModelingBaseT< PixelType, DerivativeType >::~zxhImageModelingBaseT | ( | void | ) | [inline] |
virtual zxhImageDataT<PixelType>* zxhImageModelingBaseT< PixelType, DerivativeType >::GetImage | ( | ) | [inline, virtual] |
virtual DerivativeType zxhImageModelingBaseT< PixelType, DerivativeType >::GetPixelGradientMagnitude | ( | float | x, |
float | y = 0 , |
||
float | z = 0 , |
||
float | t = 0 |
||
) | [inline, virtual] |
zxhImageDataT<PixelType>* zxhImageModelingBaseT< PixelType, DerivativeType >::m_pImage [protected] |