fw4spl
Transform.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWITKIO_HELPER_TRANSFORM_HPP__
8 #define __FWITKIO_HELPER_TRANSFORM_HPP__
9 
10 #include "fwItkIO/config.hpp"
11 
12 #include <fwData/TransformationMatrix3D.hpp>
13 
14 #include <itkMatrix.h>
15 
16 namespace fwItkIO
17 {
18 namespace helper
19 {
23 class FWITKIO_CLASS_API Transform
24 {
25 public:
27  typedef ::itk::Matrix< double, 4, 4> MatrixType;
33  FWITKIO_API static MatrixType convertToITK(const ::fwData::TransformationMatrix3D::csptr& _inTrf);
34 
40  FWITKIO_API static void convertFromITK(const MatrixType& _inTrf,
41  ::fwData::TransformationMatrix3D::sptr& _outTrf );
42 };
43 
44 }// namespace helper
45 }// namespace fwItkIO
46 
47 #endif // __FWITKIO_HELPER_TRANSFORM_HPP__
The namespace fwItkIO contains reader, writer and helper for itk image.
::itk::Matrix< double, 4, 4 > MatrixType
Typedef to a itk Transform <double, 4,4>
Definition: Transform.hpp:27
Helper class to convert F4s TransformationMatrix3D to itk Matrix and the other way around...
Definition: Transform.hpp:23