A.I.M.S algorithms


bio::SplineFfd Class Reference

#include <aims/registration/ffd.h>

Inheritance diagram for bio::SplineFfd:
Collaboration diagram for bio::SplineFfd:

Public Member Functions

 SplineFfd (int dimX=0, int dimY=1, int dimZ=1, float sizeX=1., float sizeY=1., float sizeZ=1.)
 
template<typename T >
 SplineFfd (int dimX, int dimY, int dimZ, const AimsData< T > &test_volume)
 
 SplineFfd (const SplineFfd &other)
 
 SplineFfd (const AimsData< Point3df > &other)
 
SplineFfdoperator= (const SplineFfd &other)
 
 operator const AimsData< Point3df > & () const
 
 operator AimsData< Point3df > & ()
 
bool isIdentity () const
 
Point3df getCtrlKnot (int nx, int ny, int nz) const
 
void updateCtrlKnot (int nx, int ny, int nz, const Point3df &newCtrlKnot)
 
void updateAllCtrlKnot (const AimsData< Point3df > &newCtrlKnotGrid)
 
void updateAllCtrlKnotFromDeformation (const AimsData< Point3df > &newDeformationGrid)
 
void increaseResolution (const Point3d &addKnots)
 
void inverseTransform ()
 
void estimateLocalDisplacement (const Point3df &voxelSize)
 
Point3dd deformation (const Point3dd &p_mm) const
 
Point3dd ffdCoord (const Point3dd &p_mm) const
 
double spline3 (double x) const
 
int dimX () const
 
int dimY () const
 
int dimZ () const
 
float sizeX () const
 
float sizeY () const
 
float sizeZ () const
 
bool isFlat (int i) const
 
void printControlPointsGrid () const
 
void writeDebugCtrlKnots (const std::string &filename) const
 
void writeDebugDeformations (const std::string &filename, int dimX, int dimY, int dimZ, float sizeX, float sizeY, float sizeZ) const
 
void write (const std::string &filename) const
 
- Public Member Functions inherited from aims::Transformation
virtual void setToIdentity ()
 

Additional Inherited Members

- Protected Member Functions inherited from aims::Transformation3d
virtual Point3df transformFloat (float x, float y, float z) const
 
virtual Point3dd transformVectorDouble (double x, double y, double z) const
 
virtual Point3df transformVectorFloat (float x, float y, float z) const
 

Detailed Description

Definition at line 31 of file ffd.h.

Constructor & Destructor Documentation

bio::SplineFfd::SplineFfd ( int  dimX = 0,
int  dimY = 1,
int  dimZ = 1,
float  sizeX = 1.,
float  sizeY = 1.,
float  sizeZ = 1. 
)
template<typename T >
bio::SplineFfd::SplineFfd ( int  dimX,
int  dimY,
int  dimZ,
const AimsData< T > &  test_volume 
)
bio::SplineFfd::SplineFfd ( const SplineFfd other)
bio::SplineFfd::SplineFfd ( const AimsData< Point3df > &  other)

Member Function Documentation

Point3dd bio::SplineFfd::deformation ( const Point3dd p_mm) const
int bio::SplineFfd::dimX ( ) const
inline

Definition at line 79 of file ffd.h.

Referenced by isFlat(), and isIdentity().

int bio::SplineFfd::dimY ( ) const
inline

Definition at line 80 of file ffd.h.

Referenced by isFlat(), and isIdentity().

int bio::SplineFfd::dimZ ( ) const
inline

Definition at line 81 of file ffd.h.

Referenced by isFlat(), and isIdentity().

void bio::SplineFfd::estimateLocalDisplacement ( const Point3df voxelSize)
Point3dd bio::SplineFfd::ffdCoord ( const Point3dd p_mm) const
inline

Definition at line 74 of file ffd.h.

Point3df bio::SplineFfd::getCtrlKnot ( int  nx,
int  ny,
int  nz 
) const
void bio::SplineFfd::increaseResolution ( const Point3d addKnots)
void bio::SplineFfd::inverseTransform ( )
bool bio::SplineFfd::isFlat ( int  i) const
inline

Definition at line 85 of file ffd.h.

References dimX(), dimY(), and dimZ().

bool bio::SplineFfd::isIdentity ( ) const
inlinevirtual

Reimplemented from aims::Transformation.

Definition at line 49 of file ffd.h.

References dimX(), dimY(), and dimZ().

bio::SplineFfd::operator AimsData< Point3df > & ( )
inline

Definition at line 47 of file ffd.h.

bio::SplineFfd::operator const AimsData< Point3df > & ( ) const
inline

Definition at line 46 of file ffd.h.

SplineFfd& bio::SplineFfd::operator= ( const SplineFfd other)
void bio::SplineFfd::printControlPointsGrid ( ) const
float bio::SplineFfd::sizeX ( ) const
inline

Definition at line 82 of file ffd.h.

float bio::SplineFfd::sizeY ( ) const
inline

Definition at line 83 of file ffd.h.

float bio::SplineFfd::sizeZ ( ) const
inline

Definition at line 84 of file ffd.h.

double bio::SplineFfd::spline3 ( double  x) const
inline

Definition at line 76 of file ffd.h.

References TabulSpline::spline3().

void bio::SplineFfd::updateAllCtrlKnot ( const AimsData< Point3df > &  newCtrlKnotGrid)
void bio::SplineFfd::updateAllCtrlKnotFromDeformation ( const AimsData< Point3df > &  newDeformationGrid)
void bio::SplineFfd::updateCtrlKnot ( int  nx,
int  ny,
int  nz,
const Point3df newCtrlKnot 
)
void bio::SplineFfd::write ( const std::string &  filename) const
void bio::SplineFfd::writeDebugCtrlKnots ( const std::string &  filename) const
void bio::SplineFfd::writeDebugDeformations ( const std::string &  filename,
int  dimX,
int  dimY,
int  dimZ,
float  sizeX,
float  sizeY,
float  sizeZ 
) const

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