21 #ifndef MIRTK_FreeFormTransformation3D_H 22 #define MIRTK_FreeFormTransformation3D_H 24 #include "mirtk/FreeFormTransformation.h" 26 #include "mirtk/ImageAttributes.h" 49 double,
double,
double,
50 double,
double,
double,
84 virtual void JacobianDOFs(
Matrix &,
int,
double,
double,
double,
double = 0,
double = NaN)
const;
87 virtual void JacobianDOFs(
double [3],
int,
int,
int,
double,
double,
double)
const;
90 virtual void JacobianDOFs(
double [3],
int,
double,
double,
double,
double = 0,
double = NaN)
const;
97 double = NaN,
double = 1)
const;
102 double *,
double = 0,
double = NaN,
double = 1)
const;
133 int &,
int &,
int &,
double = 1)
const;
137 int,
int &,
int &,
int &,
138 int &,
int &,
int &,
double = 1)
const;
153 cerr << this->
NameOfClass() <<
"::JacobianDOFs: Not implemented" << endl;
163 const int c = dof % 3;
164 for (
int i = 0; i < 3; ++i) {
165 if (i != c) jac[i] = .0;
209 p1 =
Point(i - 2 * fraction, j - 2 * fraction, k - 2 * fraction);
210 p2 =
Point(i + 2 * fraction, j + 2 * fraction, k + 2 * fraction);
219 int &i2,
int &j2,
int &k2,
double fraction)
const 230 i1 = (p1.
_x < 0) ? 0 :
int(p1.
_x)+1;
231 j1 = (p1.
_y < 0) ? 0 :
int(p1.
_y)+1;
232 i2 = (int(p2.
_x) >= image->
GetX()) ? image->
GetX()-1 : int(p2.
_x);
233 j2 = (int(p2.
_y) >= image->
GetY()) ? image->
GetY()-1 : int(p2.
_y);
235 if (image->
GetZ() == 1) {
238 k1 = (p1.
_z < 0) ? 0 :
int(p1.
_z)+1;
239 k2 = (int(p2.
_z) >= image->
GetZ()) ? image->
GetZ()-1 : int(p2.
_z);
247 int &i2,
int &j2,
int &k2,
double fraction)
const 255 #endif // MIRTK_FreeFormTransformation4D_H
void WorldToImage(double &, double &) const
World to image coordinate conversion with two doubles.
double _x
x coordinate of Point
void Initialize(int, int=-1, double *=NULL)
Initialize matrix with number of rows and columns.
Status
Enumeration of common states for entities such as objective function parameters.
int GetX() const
Returns the number of voxels in the x-direction.
int GetY() const
Returns the number of voxels in the y-direction.
virtual const char * NameOfClass() const =0
Get name of class, which this object is an instance of.
double _z
z coordinate of Point
double _y
y coordinate of Point
int GetZ() const
Returns the number of voxels in the z-direction.