fw4spl
fwItkIO::helper::Transform Class Reference

Helper class to convert F4s TransformationMatrix3D to itk Matrix and the other way around. More...

#include <Transform.hpp>

Public Types

typedef ::itk::Matrix< double, 4, 4 > MatrixType
 Typedef to a itk Transform <double, 4,4>
 

Static Public Member Functions

static FWITKIO_API MatrixType convertToITK (const ::fwData::TransformationMatrix3D::csptr &_inTrf)
 convert a F4S transformation to itk More...
 
static FWITKIO_API void convertFromITK (const MatrixType &_inTrf,::fwData::TransformationMatrix3D::sptr &_outTrf)
 convert an itk::Transform<double, 4, 4> to a F4S one More...
 

Detailed Description

Helper class to convert F4s TransformationMatrix3D to itk Matrix and the other way around.

Definition at line 23 of file Transform.hpp.

Member Function Documentation

void fwItkIO::helper::Transform::convertFromITK ( const MatrixType _inTrf,
::fwData::TransformationMatrix3D::sptr &  _outTrf 
)
static

convert an itk::Transform<double, 4, 4> to a F4S one

Parameters
_inTrfConst Pointer to a itk::Transform<double, 4,4>
_outTrfoutput fwData::TransformationMatrix3D (needs to be allocated before)

Definition at line 33 of file Transform.cpp.

References SLM_ASSERT.

Transform::MatrixType fwItkIO::helper::Transform::convertToITK ( const ::fwData::TransformationMatrix3D::csptr &  _inTrf)
static

convert a F4S transformation to itk

Parameters
_inTrfinput fwData::TransformationMatrix3D
Returns
Pointer to a itk::Matrix<double, 4, 4>

Definition at line 16 of file Transform.cpp.


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