7 #include "fwItkIO/helper/Transform.hpp" 20 for(std::uint8_t i = 0; i < 4; ++i)
22 for(std::uint8_t j = 0; j < 4; ++j)
24 itkMat(i, j) = _inTrf->getCoefficient(i, j);
35 SLM_ASSERT(
"Input itk Matrix should be 4x4", _inTrf.ColumnDimensions == 4 && _inTrf.RowDimensions == 4);
37 for(std::uint8_t i = 0; i < 4; ++i)
39 for(std::uint8_t j = 0; j < 4; ++j)
41 _outTrf->setCoefficient(i, j, _inTrf(i, j));
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
The namespace fwItkIO contains reader, writer and helper for itk image.