NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
PerspectiveProjectionTransform of a vector space (e.g. space coordinates) More...
Public Types | |
typedef PerspectiveProjectionTransform | Self |
typedef Transform< TScalarType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)> | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::ScalarType | ScalarType |
typedef Superclass::ParametersType | ParametersType |
typedef Superclass::JacobianType | JacobianType |
typedef Matrix< TScalarType, itkGetStaticConstMacro(InputSpaceDimension+1), itkGetStaticConstMacro(InputSpaceDimension+1)> | MatrixType |
typedef Vector< TScalarType, itkGetStaticConstMacro(InputSpaceDimension)> | InputVectorType |
typedef Vector< TScalarType, itkGetStaticConstMacro(OutputSpaceDimension)> | OutputVectorType |
typedef Point< TScalarType, itkGetStaticConstMacro(InputSpaceDimension)> | InputPointType |
typedef Point< TScalarType, itkGetStaticConstMacro(OutputSpaceDimension)> | OutputPointType |
Public Member Functions | |
itkStaticConstMacro (InputSpaceDimension, unsigned int, 3) | |
itkStaticConstMacro (OutputSpaceDimension, unsigned int, 2) | |
itkStaticConstMacro (SpaceDimension, unsigned int, 3) | |
itkStaticConstMacro (ParametersDimension, unsigned int, 3) | |
virtual const char * | GetClassName () const |
void | SetParameters (const ParametersType ¶meters) |
const ParametersType & | GetParameters () const |
virtual void | SetFixedParameters (const ParametersType &) |
virtual const ParametersType & | GetFixedParameters (void) const |
void | SetFocalDistance (TScalarType focalDistance) |
double | GetFocalDistance (void) const |
void | SetOriginIn2D (TScalarType u0, TScalarType v0) |
void | SetK1IsNegative (void) |
void | SetK2IsNegative (void) |
void | GetOriginIn2D (TScalarType &u0, TScalarType &v0) |
MatrixType | GetMatrix () const |
OutputPointType | TransformPoint (const InputPointType &point) const |
virtual const JacobianType | GetJacobian (const InputPointType &point) const |
virtual void | ComputeJacobianWithRespectToParameters (const InputPointType &point, JacobianType &jacobian) const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
PerspectiveProjectionTransform () | |
~PerspectiveProjectionTransform () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
double | m_k1 |
double | m_k2 |
PerspectiveProjectionTransform of a vector space (e.g. space coordinates)
This transform applies a projection of 3D space to 2D space along the Z axis. It differs from class Rigid3DTransform in that there is no rigid component but also in that the parameters are the three perspective projection parameters.
typedef SmartPointer<const Self> itk::PerspectiveProjectionTransform< TScalarType >::ConstPointer |
typedef Point<TScalarType, itkGetStaticConstMacro(InputSpaceDimension)> itk::PerspectiveProjectionTransform< TScalarType >::InputPointType |
Standard coordinate point type for this class.
typedef Vector<TScalarType, itkGetStaticConstMacro(InputSpaceDimension)> itk::PerspectiveProjectionTransform< TScalarType >::InputVectorType |
Standard vector type for this class.
typedef Superclass::JacobianType itk::PerspectiveProjectionTransform< TScalarType >::JacobianType |
Jacobian type.
typedef Matrix<TScalarType, itkGetStaticConstMacro(InputSpaceDimension + 1), itkGetStaticConstMacro(InputSpaceDimension + 1)> itk::PerspectiveProjectionTransform< TScalarType >::MatrixType |
Standard matrix type for this class.
typedef Point<TScalarType, itkGetStaticConstMacro(OutputSpaceDimension)> itk::PerspectiveProjectionTransform< TScalarType >::OutputPointType |
typedef Vector<TScalarType, itkGetStaticConstMacro(OutputSpaceDimension)> itk::PerspectiveProjectionTransform< TScalarType >::OutputVectorType |
typedef Superclass::ParametersType itk::PerspectiveProjectionTransform< TScalarType >::ParametersType |
Parameters type.
typedef SmartPointer<Self> itk::PerspectiveProjectionTransform< TScalarType >::Pointer |
typedef Superclass::ScalarType itk::PerspectiveProjectionTransform< TScalarType >::ScalarType |
Scalar type.
typedef PerspectiveProjectionTransform itk::PerspectiveProjectionTransform< TScalarType >::Self |
Standard class typedefs.
typedef Transform< TScalarType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)> itk::PerspectiveProjectionTransform< TScalarType >::Superclass |
|
protected |
|
protected |
|
virtual |
|
virtual |
Run-time type information (and related methods).
|
inlinevirtual |
Get the Fixed Parameters.
|
inline |
Return the Focal Distance
|
virtual |
Compute the Jacobian Matrix of the transformation at one point
MatrixType itk::PerspectiveProjectionTransform< TScalarType >::GetMatrix | ( | ) | const |
Get the 3x4 projection matrix matrix.
|
inline |
Get the origin of the 2D projection image.
const ParametersType& itk::PerspectiveProjectionTransform< TScalarType >::GetParameters | ( | ) | const |
itk::PerspectiveProjectionTransform< TScalarType >::itkStaticConstMacro | ( | InputSpaceDimension | , |
unsigned | int, | ||
3 | |||
) |
Dimension of the domain space.
itk::PerspectiveProjectionTransform< TScalarType >::itkStaticConstMacro | ( | OutputSpaceDimension | , |
unsigned | int, | ||
2 | |||
) |
itk::PerspectiveProjectionTransform< TScalarType >::itkStaticConstMacro | ( | SpaceDimension | , |
unsigned | int, | ||
3 | |||
) |
Dimension of parameters.
itk::PerspectiveProjectionTransform< TScalarType >::itkStaticConstMacro | ( | ParametersDimension | , |
unsigned | int, | ||
3 | |||
) |
|
static |
New macro for creation of through a Smart Pointer.
|
protected |
|
inlinevirtual |
There are no fixed parameters in the perspective transformation.
|
inline |
Set the Focal Distance of the projection This method sets the focal distance for the perspective projection to a value specified by the user.
|
inline |
Set the coefficient indicating that the the 'x' dimension of the 2D projection is inverted
|
inline |
Set the coefficient indicating that the the 'y' dimension of the 2D projection is inverted
|
inline |
Set the origin of the 2D projection image.
void itk::PerspectiveProjectionTransform< TScalarType >::SetParameters | ( | const ParametersType & | parameters | ) |
Set/Get the transformation from a container of parameters. This is typically used by optimizers. There are 6 parameters. The first three represent the versor and the last three represents the offset.
OutputPointType itk::PerspectiveProjectionTransform< TScalarType >::TransformPoint | ( | const InputPointType & | point | ) | const |
Transform by a PerspectiveProjectionTransform. This method applies the transform given by self to a given point, returning the transformed point.
|
protected |
|
protected |