<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><span style="font-family: monospace;">Hi all,<br><br><br>I am faced with a problem
regarding the pasting or stitching of oblique images in a final volume.
For instance, suppose I have three images, each one oriented at Rx=[-5,
0, +5] degrees, how could I read these oriented images
and place all three in a common volume?<br><br>I am not certain that the OrientImageFilter can do these, even though it can allow us to use the following command:<br><br>orienter --&gt; SetUseImageDirection( );</span><br><br><br>any insight on this would be appreciated.<br><br><br><br>Pascal<br><br><br><br><br><br>--- On <b>Mon, 2/2/09, Bill Lorensen <i>&lt;bill.lorensen@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;<br>Subject: Re: [Insight-users] itk::OrientImageFilter<br>To: "Xavier Planes" &lt;xplanes@cistib.upf.edu&gt;<br>Cc: "insight-users@itk.org" &lt;insight-users@itk.org&gt;<br>Date: Monday, February 2, 2009, 10:27 AM<br><br><pre>I think the OrientImageFIlter's letter notation is the opposite of the<br>DICOM orientations.<br><br>Instead of LPS, try RAI.<br><br>Bill<br>On Mon, Feb 2, 2009 at 10:01 AM, Xavier
 Planes &lt;xplanes@cistib.upf.edu&gt;<br>wrote:<br>&gt; Hi,<br>&gt;<br>&gt;<br>&gt;<br>&gt;                 I've tried to use the filter itk::OrientImageFilter.<br>I've<br>&gt; read a several documentation about DICOM orientation standards, tried some<br>&gt; source code examples and read several emails in the mailing list without<br>&gt; success…  . My main goal is to be able to transform the DICOM volume<br>image<br>&gt; that can be in any DICOM orientation (LPS, RAS, RAI, LPI, …) to an itk<br>&gt; Volume image always oriented in the same way (for example LPS).<br>&gt;<br>&gt;<br>&gt;<br>&gt;                 I've tried this code:<br>&gt;<br>&gt;<br>&gt;<br>&gt;                 typedef itk::OrientedImage&lt;dcmAPI::PixelType, 3&gt;<br>&gt; OrientedVolumeType;<br>&gt;<br>&gt;                 typedef itk::ImageSeriesReader&lt; OrientedVolumeType &gt;<br>&gt; VolumeReader;<br>&gt;<br>&gt;<br>&gt;<br>&gt;                 VolumeReader::Pointer
 volumeReader = VolumeReader::New();<br>&gt;<br>&gt;                 itk::GDCMImageIO::Pointer dicomIO =<br>itk::GDCMImageIO::New();<br>&gt;<br>&gt;                 volumeReader-&gt;SetImageIO( dicomIO );<br>&gt;<br>&gt;                 volumeReader-&gt;SetFileNames( sliceFilePaths );<br>&gt;<br>&gt;                 volumeReader-&gt;Update();<br>&gt;<br>&gt;                 OrientedVolumeType::Pointer volume =<br>&gt; volumeReader-&gt;GetOutput();<br>&gt;<br>&gt;<br>&gt;<br>&gt; itk::OrientImageFilter&lt;VolumeType,VolumeType&gt;::Pointer orienter =<br>&gt; itk::OrientImageFilter&lt;VolumeType,VolumeType&gt;::New();<br>&gt;<br>&gt;                 orienter-&gt;UseImageDirectionOn();<br>&gt;<br>&gt;                 orienter-&gt;SetDesiredCoordinateOrientation(<br>&gt; itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LPS);<br>&gt;<br>&gt;                 orienter-&gt;SetInput(volume);<br>&gt;<br>&gt;                
 orienter-&gt;Update();<br>&gt;<br>&gt;<br>&gt;<br>&gt;                 It works fine with RAI input image orientation. However,<br>it<br>&gt; doesn't work for RSA input image orientation because the output image<br>is not<br>&gt; in LPS orientation. I've used VolView to check that the input images<br>are<br>&gt; correct and it works fine: the VTK output image is always in the same<br>&gt; orientation.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I've also debugged a little bit with DICOM RSA input orientation. The<br>&gt; itk::OrientImageFilter does this steps:<br>&gt;<br>&gt; 1.       RSA -&gt; RAS. Permute Y And Z axis<br>&gt;<br>&gt; 2.       RAS -&gt; LAS. Flip X axis<br>&gt;<br>&gt; 3.       LAS -&gt; LPS. Flip Y axis<br>&gt;<br>&gt; However the output is not correct. It seems that when input image is<br>&gt; permuted (Y and Z axis), the orientation of the third axis is also<br>&gt; indirectly flipped (X). So after the permute filter, the image
 orientation<br>&gt; is not RAS, as it was expected by the filter.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I was thinking to create a table for permutation and flipping parameters<br>&gt; depending on each orientation. However I don't have sample DICOM data<br>for<br>&gt; all the possible orientations.<br>&gt;<br>&gt;<br>&gt;<br>&gt; Has anybody tried this filter? Has anybody tried RSA orientation input<br>&gt; image? Do you know what input image orientations have been tried?<br>&gt;<br>&gt;<br>&gt;<br>&gt; Thanks!<br>&gt;<br>&gt; Xavi<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; Insight-users@itk.org<br>&gt; http://www.itk.org/mailman/listinfo/insight-users<br>&gt;<br>&gt;<br>_______________________________________________<br>Insight-users mailing list<br>Insight-users@itk.org<br>http://www.itk.org/mailman/listinfo/insight-users<br></pre></blockquote></td></tr></table><br>