<div dir="ltr">Hi,<br><br>I have a CT image (series of images) in DICOM format and I read it with DicomSeriesImageWrite, and I write a nifti file (.nii).<br>Then
I read the nifti image with an ImageFileReader and if I ask the
information about the DICOM image and the nifti image they are equal:<br>
<br>for the DICOM image:<br><i>OrientedImage (0x8f92fd0)<br> RTTI typeinfo: itk::OrientedImage<short, 3u><br> Reference Count: 1<br> Modified Time: 2592<br> Debug: Off<br> Observers:<br> none<br> Source: (0x8f908e8)<br>
Source output index: 0<br> Release Data: Off<br> Data Released: False<br> Global Release Data: Off<br> PipelineMTime: 18<br> UpdateMTime: 2593<br> LargestPossibleRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br>
Size: [512, 512, 101]<br> BufferedRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br> RequestedRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br> Spacing: [1.36719, 1.36719, 2.5]<br>
Origin: [-350, -350, -402]<br> Direction:<br>1 0 0<br>0 1 0<br>0 0 1<br><br> PixelContainer:<br> ImportImageContainer (0x8f93188)<br> RTTI typeinfo: itk::ImportImageContainer<</i><i>unsigned long, short><br>
Reference Count: 1<br>
Modified Time: 66<br> Debug: Off<br> Observers:<br> none<br> Pointer: 0xb4d31008<br> Container manages memory: true<br> Size: 26476544<br> Capacity: 26476544</i><br><br>for the NIFTI image:<br>
<i>RTTI typeinfo: itk::OrientedImage<short, 3u><br> Reference Count: 1<br> Modified Time: 119<br> Debug: Off<br> Observers:<br> none<br> Source: (0xa1788e8)<br> Source output index: 0<br> Release Data: Off<br>
Data Released: False<br> Global Release Data: Off<br> PipelineMTime: 12<br> UpdateMTime: 120<br> LargestPossibleRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br> BufferedRegion:<br>
Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br> RequestedRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br> Spacing: [1.36719, 1.36719, 2.5]<br> Origin: [-350, -350, -402]<br>
Direction:<br>1 0 0<br>0 1 0<br>0 0 1<br><br> PixelContainer:<br> ImportImageContainer (0xa17b198)<br> RTTI typeinfo: itk::ImportImageContainer<</i><i>unsigned long, short><br> Reference Count: 1<br>
Modified Time: 117<br>
Debug: Off<br> Observers:<br> none<br> Pointer: 0xb4d22008<br> Container manages memory: true<br> Size: 26476544<br> Capacity: 26476544</i><br><br><br>Then I open the nifti image with MIPAV image viewer (<a href="http://mipav.cit.nih.gov/download.php" target="_blank">http://mipav.cit.nih.gov/download.php</a>) and if I re-save it using MIPAV<span> I get incorrect origin:<br>
<br><i>OrientedImage (0x99ddfe0)<br> RTTI typeinfo: itk::OrientedImage<short, 3u><br> Reference Count: 1<br> Modified Time: 119<br> Debug: Off<br> Observers:<br> none<br> Source: (0x99db8e8)<br> Source output index: 0<br>
Release Data: Off<br> Data Released: False<br> Global Release Data: Off<br> PipelineMTime: 12<br> UpdateMTime: 120<br> LargestPossibleRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br>
BufferedRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br> RequestedRegion:<br> Dimension: 3<br> Index: [0, 0, 0]<br> Size: [512, 512, 101]<br> Spacing: [1.36719, 1.36719, 2.5]<br>
Origin: [-350, 350, -402]<br> Direction:<br>1 0 0<br>0 1 0<br>0 0 1<br><br> PixelContainer:<br> ImportImageContainer (0x99de198)<br> RTTI typeinfo: itk::ImportImageContainer<</i><i>unsigned long, short><br>
Reference Count: 1<br>
Modified Time: 117<br> Debug: Off<br> Observers:<br> none<br> Pointer: 0xb4cbf008<br> Container manages memory: true<br> Size: 26476544<br> Capacity: 26476544</i><br><br><br></span><span> I wonder that ti is a MIPAV problem but I'm not sure!</span><span> I can't understand why MIPAV changes the origin...Anyone knows this problem?<br>
<br>
And if the problem is MIPAV I can use something else to do some pre-elaboration on the images and than work with itk?<br><br></span>Thanks for any hints.<br><span>Elena Faggiano</span></div>