<div dir="ltr">Thanks Simon, this approach works perfectly.<div><br></div><div>Regards, Chao</div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-10 16:50 GMT+02:00 Simon Rit <span dir="ltr"><<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This option works but there is a risk of an additional interpolation by the resampler and it costs some computing time. The other option I suggested requires to modify the transform parameter of the source (in this example, add<br><br>constantImageSource->SetDirection(transform->GetMatrix());<br><br>where transform is that of Yang's example, then use <a href="http://www.itk.org/Doxygen/html/classitk_1_1ChangeInformationImageFilter.html" target="_blank">itk::ChangeImageInformation</a> to reset the transform to identity.<span></span><span></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 10, 2014 at 3:47 PM, Yang Kyun Park <span dir="ltr"><<a href="mailto:theday79@gmail.com" target="_blank">theday79@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Chao,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I had the same issue on my work and I’ve managed to fix it by the following codes.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’m not sure this is the optimal way to do it but at least it worked in my case.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">(Or you can transform it in 3D Slicer.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In transform menu, you need to apply the following matrix:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">0 0 -1 0<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">1 0 0 0<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">0 1 0 0<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">0 0 0 1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">to the target image, harden the transform then export the image.)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">YangKyun<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:돋움체;color:#010001">// OutputImageType = <float, 3><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">//</span><span style="font-size:10.0pt;font-family:돋움체;color:#010001"> streamerBP</span><span style="font-size:10.0pt;font-family:돋움체">-><span style="color:#010001">GetOutput</span>(): resultant 3D image from rtkfdk reconstruction</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:green">//Same image type from original image -3D & float<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">OutputImageType</span>::<span style="color:#010001">IndexType</span> <span style="color:#010001">start_trans</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">start_trans</span>[0] = 0;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">start_trans</span>[1] = 0;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">start_trans</span>[2] = 0;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">OutputImageType</span>::<span style="color:#010001">SizeType</span> <span style="color:#010001">size_trans</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">size_trans</span>[0] = <span style="color:#010001">sizeOutput</span>[0]; <span style="color:green">// X //410<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">size_trans</span>[1] = <span style="color:#010001">sizeOutput</span>[2]; <span style="color:green">//Y // 410<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">size_trans</span>[2] = <span style="color:#010001">sizeOutput</span>[1]; <span style="color:green">//Z // 120?<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:green"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">OutputImageType</span>::<span style="color:#010001">SpacingType</span> <span style="color:#010001">spacing_trans</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">spacing_trans</span>[0] = <span style="color:#010001">spacing</span>[0];<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">spacing_trans</span>[1] = <span style="color:#010001">spacing</span>[2];<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">spacing_trans</span>[2] = <span style="color:#010001">spacing</span>[1];<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">OutputImageType</span>::<span style="color:#010001">PointType</span> <span style="color:#010001">Origin_trans</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">Origin_trans</span>[0] = -0.5* <span style="color:#010001">size_trans</span>[0]*<span style="color:#010001">spacing_trans</span>[0];<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">Origin_trans</span>[1] = -0.5* <span style="color:#010001">size_trans</span>[1]*<span style="color:#010001">spacing_trans</span>[1];<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">Origin_trans</span>[2] = -0.5* <span style="color:#010001">size_trans</span>[2]*<span style="color:#010001">spacing_trans</span>[2]; <u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">OutputImageType</span>::<span style="color:#010001">RegionType</span> <span style="color:#010001">region_trans</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">region_trans</span>.<span style="color:#010001">SetSize</span>(<span style="color:#010001">size_trans</span>);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">region_trans</span>.<span style="color:#010001">SetIndex</span>(<span style="color:#010001">start_trans</span>);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:green">/* 2) Prepare Target image */<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">OutputImageType</span>::<span style="color:#010001">Pointer</span> <span style="color:#010001">targetImg</span> = <span style="color:#010001">streamerBP</span>-><span style="color:#010001">GetOutput</span>();<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:green">/* 3) Configure transform */</span> <u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:blue">typedef</span> <span style="color:#010001">itk</span>::<span style="color:#010001">Euler3DTransform</span>< <span style="color:blue">double</span> > <span style="color:#010001">TransformType</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">TransformType</span>::<span style="color:#010001">Pointer</span> <span style="color:#010001">transform</span> = <span style="color:#010001">TransformType</span>::<span style="color:#010001">New</span>();<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">TransformType</span>::<span style="color:#010001">ParametersType</span> <span style="color:#010001">param</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">param</span>.<span style="color:#010001">SetSize</span>(6);</span><span style="font-size:9.0pt;font-family:돋움체"><u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:green">//MAXIMUM PARAM NUMBER: 6!!!<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">param</span>.<span style="color:#010001">put</span>(0, 0.0); <span style="color:green">//rot X // 0.5 = PI/2<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">param</span>.<span style="color:#010001">put</span>(1, <span style="color:#010001">itk</span>::<span style="color:#010001">Math</span>::<span style="color:#010001">pi</span>/2.0);<span style="color:green">//rot Y<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">param</span>.<span style="color:#010001">put</span>(2, <span style="color:#010001">itk</span>::<span style="color:#010001">Math</span>::<span style="color:#010001">pi</span>/-2.0);<span style="color:green">//rot Z<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">param</span>.<span style="color:#010001">put</span>(3, 0.0); <span style="color:green">// Trans X mm<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">param</span>.<span style="color:#010001">put</span>(4, 0.0); <span style="color:green">// Trans Y mm<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">param</span>.<span style="color:#010001">put</span>(5, 0.0); <span style="color:green">// Trans Z mm<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:green"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">TransformType</span>::<span style="color:#010001">ParametersType</span> <span style="color:#010001">fixedParam</span>(3); <span style="color:green">//rotation center<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">fixedParam</span>.<span style="color:#010001">put</span>(0,0);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">fixedParam</span>.<span style="color:#010001">put</span>(1,0);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">fixedParam</span>.<span style="color:#010001">put</span>(2,0);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">transform</span>-><span style="color:#010001">SetParameters</span>(<span style="color:#010001">param</span>);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">transform</span>-><span style="color:#010001">SetFixedParameters</span>(<span style="color:#010001">fixedParam</span>); <span style="color:green">//Center of the Transform<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:green"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">cout</span> << <span style="color:#a31515">"Transform matrix:"</span> << <span style="color:#a31515">" "</span> << <span style="color:#010001">endl</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">cout</span> << <span style="color:#010001">transform</span>-><span style="color:#010001">GetMatrix</span>() << <span style="color:#010001">std</span>::<span style="color:#010001">endl</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:blue">typedef</span> <span style="color:#010001">itk</span>::<span style="color:#010001">ResampleImageFilter</span><<span style="color:#010001">OutputImageType</span>, <span style="color:#010001">OutputImageType</span>> <span style="color:#010001">ResampleFilterType</span>; <u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">ResampleFilterType</span>::<span style="color:#010001">Pointer</span> <span style="color:#010001">resampler</span> = <span style="color:#010001">ResampleFilterType</span>::<span style="color:#010001">New</span>(); <u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:green">//OutputImageType::RegionType fixedImg_Region = fixedImg->GetLargestPossibleRegion().GetSize();<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:green"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">resampler</span>-><span style="color:#010001">SetInput</span>(<span style="color:#010001">targetImg</span>);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">resampler</span>-><span style="color:#010001">SetSize</span>(<span style="color:#010001">size_trans</span>);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">resampler</span>-><span style="color:#010001">SetOutputOrigin</span>( <span style="color:#010001">Origin_trans</span>); <span style="color:green">//Lt Top Inf of Large Canvas<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">resampler</span>-><span style="color:#010001">SetOutputSpacing</span>( <span style="color:#010001">spacing_trans</span> ); <span style="color:green">// 1 1 1 <u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">resampler</span>-><span style="color:#010001">SetOutputDirection</span>( <span style="color:#010001">targetImg</span>-><span style="color:#010001">GetDirection</span>() ); <span style="color:green">//image normal?<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">resampler</span>-><span style="color:#010001">SetTransform</span>(<span style="color:#010001">transform</span>);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:green">//LR flip<u></u><u></u></span></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:green"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">cout</span> << <span style="color:#a31515">"LR flip filter is being applied"</span> << <span style="color:#010001">endl</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:blue">typedef</span> <span style="color:#010001">itk</span>::<span style="color:#010001">FlipImageFilter</span>< <span style="color:#010001">OutputImageType</span> > <span style="color:#010001">FilterType</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">FilterType</span>::<span style="color:#010001">Pointer</span> <span style="color:#010001">flipFilter</span> = <span style="color:#010001">FilterType</span>::<span style="color:#010001">New</span>();<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:blue">typedef</span> <span style="color:#010001">FilterType</span>::<span style="color:#010001">FlipAxesArrayType</span> <span style="color:#010001">FlipAxesArrayType</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">FlipAxesArrayType</span> <span style="color:#010001">arrFlipAxes</span>;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">arrFlipAxes</span>[0] = 1;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">arrFlipAxes</span>[1] = 0;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">arrFlipAxes</span>[2] = 0;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">flipFilter</span>-><span style="color:#010001">SetFlipAxes</span>(<span style="color:#010001">arrFlipAxes</span>);<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체"> <span style="color:#010001">flipFilter</span>-><span style="color:#010001">SetInput</span>(<span style="color:#010001">resampler</span>-><span style="color:#010001">GetOutput</span>());<u></u><u></u></span></p><p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:#010001">flipFilter->Update();<u></u><u></u></span></p><p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:#010001"><u></u> <u></u></span></p><p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:돋움체;color:#010001">//Use flipFilter->GetOutput() for further process</span><span style="font-size:10.0pt;font-family:돋움체"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Rtk-users [mailto:<a href="mailto:rtk-users-bounces@public.kitware.com" target="_blank">rtk-users-bounces@public.kitware.com</a>] <b>On Behalf Of </b>Simon Rit<br><b>Sent:</b> Wednesday, September 10, 2014 8:39 AM<br><b>To:</b> Chao Wu<br><b>Cc:</b> <a href="mailto:rtk-users@openrtk.org" target="_blank">rtk-users@openrtk.org</a><br><b>Subject:</b> Re: [Rtk-users] coordinates of 3D volume<u></u><u></u></span></p><div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><div><p class="MsoNormal">Hi,<u></u><u></u></p></div><p class="MsoNormal">I wish there was a single industrial standard... You have the DICOM standard in mind and I used an IEC standard (see wiki). You can play with the --direction option to orientate the voxel axes of your image (see itk::Image documentation) and then reset the direction of your output image to identity, I think that will do what you want.<u></u><u></u></p></div><p class="MsoNormal">Simon<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Wed, Sep 10, 2014 at 1:35 PM, Chao Wu <<a href="mailto:wuchao04@gmail.com" target="_blank">wuchao04@gmail.com</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><p class="MsoNormal">Hi all,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I see that rtk use certain industrial standard for the coordinates of 2D projections and 3D volumes. However in medical imaging, the xy planes of a volume are usually transaxial slices while the 3rd dimension is aligned with the axis of rotation. I would like to switch to this coordinates in my own code. Is there anyone who can give me some comments and suggestions about where to start? Thanks.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Regards,<u></u><u></u></p></div><div><p class="MsoNormal">Chao<u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Rtk-users mailing list<br><a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br><a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>