<div dir="ltr">Hi,<br><br>I&#39;ve found that if i load a dicom image with MIPAV (last version) the coordinate system (origin etc.) is the same as ITK, and this is the true coordinate system.<br>If I decide to save with MIPAV the DICOM volume in a nifti format the coordinate system changes!! So the problem is clearly a MIPAV&#39;s problem...<br>
<br>Now, what I do is open with MIPAV the DICOM volume make preprocessing on DICOM volume and than save it in DICOM format too (in order to mantain the correct origin and orientation). <br><br>anyways what I want to do as preprocessing is pad or cut the image or put some markers on it.<br>
<br>Thanks<br><br>Elena Faggiano<br><br><div class="gmail_quote">2008/10/16 Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Elena,<br>
<br>
This looks like a problem in MIPAV, not really an ITK problem.<br>
<br>
If you are looking for applications for preprocessing images<br>
you may want to look at:<br>
<br>
<br>
 &nbsp; &nbsp;Slicer: &nbsp; <a href="http://www.slicer.org/" target="_blank">http://www.slicer.org/</a><br>
 &nbsp; &nbsp;SNAP: &nbsp; &nbsp; <a href="http://www.itksnap.org/" target="_blank">http://www.itksnap.org/</a><br>
<br>
<br>
That are both build based on ITK and VTK.<br>
<br>
<br>
What kind of pre-processing do you need to apply to these images ?<br>
<br>
<br>
 &nbsp; Thanks<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp;Luis<br>
<br>
<br>
-----------------------<br>
Elena Faggiano wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
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>
/OrientedImage (0x8f92fd0)<br>
 &nbsp;RTTI typeinfo: &nbsp; itk::OrientedImage&lt;short, 3u&gt;<br>
 &nbsp;Reference Count: 1<br>
 &nbsp;Modified Time: 2592<br>
 &nbsp;Debug: Off<br>
 &nbsp;Observers:<br>
 &nbsp; &nbsp;none<br>
 &nbsp;Source: (0x8f908e8)<br>
 &nbsp;Source output index: 0<br>
 &nbsp;Release Data: Off<br>
 &nbsp;Data Released: False<br>
 &nbsp;Global Release Data: Off<br>
 &nbsp;PipelineMTime: 18<br>
 &nbsp;UpdateMTime: 2593<br>
 &nbsp;LargestPossibleRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;BufferedRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;RequestedRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;Spacing: [1.36719, 1.36719, 2.5]<br>
 &nbsp;Origin: [-350, -350, -402]<br>
 &nbsp;Direction:<br>
1 0 0<br>
0 1 0<br>
0 0 1<br>
<br>
 &nbsp;PixelContainer:<br>
 &nbsp; &nbsp;ImportImageContainer (0x8f93188)<br>
 &nbsp; &nbsp; &nbsp;RTTI typeinfo: &nbsp; itk::ImportImageContainer&lt;//unsigned long, short&gt;<br>
 &nbsp; &nbsp; &nbsp;Reference Count: 1<br>
 &nbsp; &nbsp; &nbsp;Modified Time: 66<br>
 &nbsp; &nbsp; &nbsp;Debug: Off<br>
 &nbsp; &nbsp; &nbsp;Observers:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; &nbsp;Pointer: 0xb4d31008<br>
 &nbsp; &nbsp; &nbsp;Container manages memory: true<br>
 &nbsp; &nbsp; &nbsp;Size: 26476544<br>
 &nbsp; &nbsp; &nbsp;Capacity: 26476544/<br>
<br>
for the NIFTI image:<br>
&nbsp;/RTTI typeinfo: &nbsp; itk::OrientedImage&lt;short, 3u&gt;<br>
 &nbsp;Reference Count: 1<br>
 &nbsp;Modified Time: 119<br>
 &nbsp;Debug: Off<br>
 &nbsp;Observers:<br>
 &nbsp; &nbsp;none<br>
 &nbsp;Source: (0xa1788e8)<br>
 &nbsp;Source output index: 0<br>
 &nbsp;Release Data: Off<br>
 &nbsp;Data Released: False<br>
 &nbsp;Global Release Data: Off<br>
 &nbsp;PipelineMTime: 12<br>
 &nbsp;UpdateMTime: 120<br>
 &nbsp;LargestPossibleRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;BufferedRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;RequestedRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;Spacing: [1.36719, 1.36719, 2.5]<br>
 &nbsp;Origin: [-350, -350, -402]<br>
 &nbsp;Direction:<br>
1 0 0<br>
0 1 0<br>
0 0 1<br>
<br>
 &nbsp;PixelContainer:<br>
 &nbsp; &nbsp;ImportImageContainer (0xa17b198)<br>
 &nbsp; &nbsp; &nbsp;RTTI typeinfo: &nbsp; itk::ImportImageContainer&lt;//unsigned long, short&gt;<br>
 &nbsp; &nbsp; &nbsp;Reference Count: 1<br>
 &nbsp; &nbsp; &nbsp;Modified Time: 117<br>
 &nbsp; &nbsp; &nbsp;Debug: Off<br>
 &nbsp; &nbsp; &nbsp;Observers:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; &nbsp;Pointer: 0xb4d22008<br>
 &nbsp; &nbsp; &nbsp;Container manages memory: true<br>
 &nbsp; &nbsp; &nbsp;Size: 26476544<br>
 &nbsp; &nbsp; &nbsp;Capacity: 26476544/<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 I get incorrect origin:<br>
<br>
/OrientedImage (0x99ddfe0)<br>
 &nbsp;RTTI typeinfo: &nbsp; itk::OrientedImage&lt;short, 3u&gt;<br>
 &nbsp;Reference Count: 1<br>
 &nbsp;Modified Time: 119<br>
 &nbsp;Debug: Off<br>
 &nbsp;Observers:<br>
 &nbsp; &nbsp;none<br>
 &nbsp;Source: (0x99db8e8)<br>
 &nbsp;Source output index: 0<br>
 &nbsp;Release Data: Off<br>
 &nbsp;Data Released: False<br>
 &nbsp;Global Release Data: Off<br>
 &nbsp;PipelineMTime: 12<br>
 &nbsp;UpdateMTime: 120<br>
 &nbsp;LargestPossibleRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;BufferedRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;RequestedRegion:<br>
 &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp;Size: [512, 512, 101]<br>
 &nbsp;Spacing: [1.36719, 1.36719, 2.5]<br>
 &nbsp;Origin: [-350, 350, -402]<br>
 &nbsp;Direction:<br>
1 0 0<br>
0 1 0<br>
0 0 1<br>
<br>
 &nbsp;PixelContainer:<br>
 &nbsp; &nbsp;ImportImageContainer (0x99de198)<br>
 &nbsp; &nbsp; &nbsp;RTTI typeinfo: &nbsp; itk::ImportImageContainer&lt;//unsigned long, short&gt;<br>
 &nbsp; &nbsp; &nbsp;Reference Count: 1<br>
 &nbsp; &nbsp; &nbsp;Modified Time: 117<br>
 &nbsp; &nbsp; &nbsp;Debug: Off<br>
 &nbsp; &nbsp; &nbsp;Observers:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; &nbsp;Pointer: 0xb4cbf008<br>
 &nbsp; &nbsp; &nbsp;Container manages memory: true<br>
 &nbsp; &nbsp; &nbsp;Size: 26476544<br>
 &nbsp; &nbsp; &nbsp;Capacity: 26476544/<br>
<br>
<br>
I wonder that ti is a MIPAV problem but I&#39;m not sure! I can&#39;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>
Thanks for any hints.<br>
Elena Faggiano<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
</blockquote></div><br></div>