Hi Alex,

everything looks fine. The data is displayed in the reference system defined by 
the transformation matrices that are usually saved with the data, which is what 
we call the "world coordinate system". In contrast, typical DICOM viewers will 
show slices of the pure data without any geometrical information (the "index 
coordinate system"). To do the same in MITK, simply right-click on your data 
object and select "Reinit". Hope that helps!

Best,
Jens 

-----Ursprüngliche Nachricht-----
Von: Alexander Kuznetsov [mailto:alexander.ev.kuznet...@gmail.com] 
Gesendet: Dienstag, 12. Juli 2016 10:56
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Rotated MRI image in MITK

Hello.

I have some problem with loading MRI image in MITK.
Look like, image is rotated around Y axis, so the first and the last slices on 
axial view are cropped, see attached image.
At the same time, the same image in OsiriX and RadiAnt looks well and there is 
no cropping.

So far I pinned the problem down to  the function template <typename 
itkImageType> void InitializeByItk(const
itkImageType* itkimage, int channels = 1, int tDim = -1, int sDim=-1) {
   ...
     // access direction of itk::Imagm_PixelType = new mitk::PixelType(type);e 
and include spacing
     const typename itkImageType::DirectionType & itkdirection = 
itkimage->GetDirection();
     MITK_DEBUG << "ITK direction " << itkdirection;
     mitk::Matrix3D matrix;
     matrix.SetIdentity();
     unsigned int j, itkDimMax3 = (m_Dimension >= 3? 3 : m_Dimension);
     // check if spacing has no zero entry and itkdirection has no zero columns
     bool itkdirectionOk = true;
     mitk::ScalarType columnSum;

     ... Matrix set up ...
   ...
}
If I set up itkdirectionOk = false, image is loaded as expected.

Is it some known problem of MITK? Is there any proper work-around for this 
issue?

Regards, Alex.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to