<div dir="ltr"><div><div>Hi,<br></div>No, as far as I know (I'm not a Windows user), use of VS with RTK is similar to any cmake-based project. So you could try to find some info on the cmake website.<br></div>Simon<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 28, 2015 at 11:23 AM, Robert Calließ <span dir="ltr"><<a href="mailto:robert.calliess@gmx.de" target="_blank">robert.calliess@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div></div><div>Hello,</div><div>just a short question. Is there a tutorial for using RTK in visual studio respectively for creating the solution files?</div><div><br></div><div>kind regards,</div><div>Robert C.</div><div></div></div><div></div><br><br>-------- Ursprüngliche Nachricht --------<br>Von: Yang K Park <<a href="mailto:theday79@gmail.com" target="_blank">theday79@gmail.com</a>> <br>Datum:27.06.2015  07:40  (GMT+01:00) <br>An: 'safdary mohsen' <<a href="mailto:ieee.safdary@gmail.com" target="_blank">ieee.safdary@gmail.com</a>> <br>Cc: <a href="mailto:rtk-users@openrtk.org" target="_blank">rtk-users@openrtk.org</a> <br>Betreff: Re: [Rtk-users] error on build rtk in visual studio 2012 when rtk       use cuda <br><div><div class="h5"><br><div><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.666666984558105px"></span></p><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Safdary,<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’ve checked my up-to-date rtk source.<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">The FindCUDA_wrap.cmake file is located at “..\trunk\cmake” (Are you sure that you are using up-to-date rtk? If you are using old version located somewhere in “\tags\v1.0.0”, I’m recommending you to find another version in “trunk” directory.)<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">In that cmake file, I found that the problematic codes had been already commented out as below:<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">if("${CUDA_VERSION}" LESS 6.5)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     #  set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     #        -gencode arch=compute_10,code=sm_10<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     #        -gencode arch=compute_11,code=sm_11<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     #        -gencode arch=compute_12,code=sm_12<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     #        -gencode arch=compute_13,code=sm_13<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     #      )<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">endif ()<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">if("${CUDA_VERSION}" LESS 5.0)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""> set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     -gencode arch=compute_20,code=sm_20<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     -gencode arch=compute_20,code=compute_20<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">    )<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">else()<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""> set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     -gencode arch=compute_20,code=sm_20<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     -gencode arch=compute_30,code=sm_30<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     -gencode arch=compute_35,code=sm_35<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     -gencode arch=compute_35,code=compute_35<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">     )<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">endif()<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">But it seems that your capture image is different from my up-to-date one.<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">If you are using some previous version of rtk ( such as 1.0.0, rc1.0_rc3), and really want to stick with it, <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">just try to replace the suspicious paragraph with following:<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">if(CUDA_VERSION_MAJOR LESS "6")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 1: [X]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">            -gencode arch=compute_10,code=sm_10<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">            -gencode arch=compute_11,code=sm_11<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">            -gencode arch=compute_12,code=sm_12<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">            -gencode arch=compute_13,code=sm_13<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">    else()<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 1: [ ]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">    endif()<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">    if(CUDA_VERSION_MAJOR GREATER "2")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 2: [X]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">            -gencode arch=compute_20,code=sm_20<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">    else()<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 2: [ ]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">    endif()<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">    if(CUDA_VERSION_MAJOR GREATER "4")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 3: [X]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">            -gencode arch=compute_30,code=sm_30<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">    else()<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 3: [ ]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">    endif()<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">    if(CUDA_VERSION_MAJOR GREATER "5")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 5: [X]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                    -gencode arch=compute_50,code=sm_50<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                    -gencode arch=compute_50,code=compute_50<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">    else()<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">                message (STATUS "  >> Generation 5: [ ]")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">    endif()<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">Again, I think you would not face CUDA issue with up-to-date version of rtk (which is in “trunk” directory).<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">Hope this helps.<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">Yang<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"> safdary mohsen [mailto:<a href="mailto:ieee.safdary@gmail.com" target="_blank">ieee.safdary@gmail.com</a>] <br><b>Sent:</b> Saturday, June 27, 2015 12:48 AM<br><b>To:</b> Yang K Park<br><b>Subject:</b> Re: [Rtk-users] error on build rtk in visual studio 2012 when rtk use cuda<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Hi Yang<u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Arial",sans-serif">So you are guess that remove -<span style="color:red">-gencode arch=compute_10,code=sm_10</span> <span style="color:#222222">from cmake file(findcuda_wrap) couses this problem!!!</span></span><u></u><u></u></p></div><div><p class="MsoNormal">have you any suggestion?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><img alt="Inline image 2" height="768" width="1024"><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Fri, Jun 26, 2015 at 10:33 AM, safdary mohsen <<a href="mailto:ieee.safdary@gmail.com" target="_blank">ieee.safdary@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-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"><div><div><p class="MsoNormal">Hi Yang<u></u><u></u></p></div><div><p class="MsoNormal">i am use this command and the result is ok but in cuda mode not.<u></u><u></u></p></div><div><p class="MsoNormal">rtkfdk --geometry geometry.xml --regexp .*.hnd --path Scan0  --output slice30.mha  --verbose  --spacing 0.25,0.25,0.25 --dimension 1024,1,1024 --origin -127.875,30,-127.875  --hardware <span style="color:red">cpu)</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="color:black">and  screen shot of my cuda version is attached (v6.5)</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><div><div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Fri, Jun 26, 2015 at 10:22 AM, safdary mohsen <<a href="mailto:ieee.safdary@gmail.com" target="_blank">ieee.safdary@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-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#222222">Cyril Mory</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I am using example dataset for Varian from RTK website.</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">But i am using  86 projections insted of 686:</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Proj_00000.hnd  , Proj_00008.hnd , Proj_00012.hnd +(steps : 8) ..., Proj_00280.hnd,  Proj_00288.hnd, ....,Proj_00672.hnd, Proj_00680.hnd</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">and my geometry file is atached to mail</span><u></u><u></u></p></div></div><div><div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Thu, Jun 25, 2015 at 8:25 PM, Yang K Park <<a href="mailto:theday79@gmail.com" target="_blank">theday79@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-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Safdary,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I’m a bit confused because the attached source code is not original rtkfdk source code.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">So, my point about genuine rtkfdk means,</span><u></u><u></u></p><p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">1.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Update your rtk source</span><u></u><u></u></p><p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">2.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Don’t change any source code and just compile them.</span><u></u><u></u></p><p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">3.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Use the example dataset for Varian from RTK website.</span><u></u><u></u></p><p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">4.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In the command prompt, run the command line (“rtkfdk …”)</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I guess you already did the above things, and then you could see something with CPU option but nothing in your cuda-based reconstruction. </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If that is the case, I’m suspecting your CUDA/Graphic driver and cuda implementation such as CUDA-compute_10 error you might have faced during RTK compiling.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">To be honest, I have no idea how to deal with such issues.(Sorry about that)</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Yang</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></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"> safdary mohsen [mailto:</span><a href="mailto:ieee.safdary@gmail.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">ieee.safdary@gmail.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">] <br><b>Sent:</b> Thursday, June 25, 2015 1:28 AM<br><b>To:</b> Yang-Kyun Park<br><b>Cc:</b> </span><a href="mailto:rtk-users@openrtk.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">rtk-users@openrtk.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">; Cyril Mory</span><u></u><u></u></p><div><div><p class="MsoNormal"><br><b>Subject:</b> Re: [Rtk-users] error on build rtk in visual studio 2012 when rtk use cuda<u></u><u></u></p></div></div><div><div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">Hi <u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"> what is genuine rtkfdk.exe ?<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">source code is attached to mail and command line is:<u></u><u></u></p></div><div><p class="MsoNormal">rtkfdk --geometry geometry.xml --regexp .*.hnd --path Scan0  --output slice30.mha  --verbose  --spacing 0.25,0.25,0.25 --dimension 1024,1,1024 --origin -127.875,30,-127.875  --hardware cuda<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p> <u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p></div></div><div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">On Wed, Jun 24, 2015 at 5:51 PM, Yang-Kyun Park <<a href="mailto:theday79@gmail.com" target="_blank">theday79@gmail.com</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;border-color:currentColor currentColor currentColor rgb(204,204,204)"><p>Hi Safdary,<u></u><u></u></p><p>So you might have tried the genuine rtkfdk.exe for your recon. Would you give me your command line you used?<u></u><u></u></p><p><span style="color:#888888">Yang</span><u></u><u></u></p><div><div><div><p class="MsoNormal">On Jun 24, 2015 3:48 AM, "safdary mohsen" <<a href="mailto:ieee.safdary@gmail.com" target="_blank">ieee.safdary@gmail.com</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;border-color:currentColor currentColor currentColor rgb(204,204,204)"><div><div><p class="MsoNormal">Hi <u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I cheched projectionreader and i abtained that all projection are readed.<u></u><u></u></p></div><div><p class="MsoNormal">( by using:<u></u><u></u></p></div><div><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas"> itk::<span style="color:#2b91af">ImageFileWriter</span><<span style="color:#2b91af">OutputImageType</span>> <span style="color:#2b91af">WriterType</span>;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">WriterType</span><span style="font-size:10.0pt;font-family:Consolas">::<span style="color:#2b91af">Pointer</span> writer = <span style="color:#2b91af">WriterType</span>::New();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas">writer->SetFileName( <span style="color:#a31515">"reader.mha"</span> );</span><u></u><u></u></p></div><p><span style="font-size:10.0pt;font-family:Consolas">writer->SetInput( reader->GetOutput() );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas">writer->Update();</span><u></u><u></u></p><div><p class="MsoNormal">)<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">and<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">geometry is work for cpu mode means outputs are ok .<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I am confused for solving this problem!!!!!!!!!!!!!!!!!<u></u><u></u></p></div></div><div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">On Tue, Jun 16, 2015 at 11:09 AM, Cyril Mory <<a href="mailto:cyril.mory@creatis.insa-lyon.fr" target="_blank">cyril.mory@creatis.insa-lyon.fr</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;border-color:currentColor currentColor currentColor rgb(204,204,204)"><div><p class="MsoNormal">Hi Safdary,<br><br>Just to be sure: have you tried reconstructing in a larger volume (something really huge), just to make sure you are not trying to reconstruct some portion of space where, indeed, there is nothing ? <br>You can try that easily, just replace your spacing, dimension and origin with<br>--spacing 16,16,16 --dimension 256,256,256 --origin -2040,-2040,-2040<br>in your rtkfdk command line.<span style="color:#888888"><br><br>Cyril</span><u></u><u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p><div><p class="MsoNormal">On 06/15/2015 05:19 PM, safdary mohsen wrote:<u></u><u></u></p></div></div></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><div><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Yang</span><u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I am use rtkfdk.exe but the results are same as  my code, </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">means all pixels are zero!!!</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#222222"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">regards</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">safdari</span><u></u><u></u></p></div></div><div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">On Mon, Jun 15, 2015 at 7:10 PM, Yang K Park <<a href="mailto:theday79@gmail.com" target="_blank">theday79@gmail.com</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;border-color:currentColor currentColor currentColor rgb(204,204,204)"><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Safdary, </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Again, please cc </span><a href="mailto:rtk-users@openrtk.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">rtk-users@openrtk.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> when you send your email, since other users (much better experts than me!) can give us any suggestions.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Yang</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><div><div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentColor"><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"> Yang K Park [mailto:</span><a href="mailto:theday79@gmail.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">theday79@gmail.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">] <br><b>Sent:</b> Monday, June 15, 2015 10:37 AM<br><b>To:</b> 'safdary mohsen'<br><b>Cc:</b> </span><a href="mailto:rtk-users@openrtk.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">rtk-users@openrtk.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br><b>Subject:</b> RE: [Rtk-users] error on build rtk in visual studio 2012 when rtk use cuda</span><u></u><u></u></p></div></div><div><div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Safdary,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I recommend you to try rtkfdk.exe first (with cuda option) to see if it works for you.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The example of the command line would be:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">rtkfdk --geometry geom.xml --path proj_dir --regexp .*.his --output  test_output.mha --verbos  --spacing 1,1,1 --dimension 512,10,512 --origin -127.875,29.5,-127.875 </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red">--hardware cuda</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:red"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If it works for your image, then you can mimic the original rtkfdk code to make your own one.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Good luck!</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Yang</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></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"> safdary mohsen [</span><a href="mailto:ieee.safdary@gmail.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">mailto:ieee.safdary@gmail.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">] <br><b>Sent:</b> Saturday, June 13, 2015 11:58 PM<br><b>To:</b> Yang K Park<br><b>Subject:</b> Re: [Rtk-users] error on build rtk in visual studio 2012 when rtk use cuda</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Yang</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I have tried to adjust the window/level to see something inside of the image but all pixels set to zero.</span><u></u><u></u></p><div><p class="MsoNormal"><u><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">My code is:</span></u><u></u><u></u></p></div><div><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#define</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#6f008a">USE_CUDA</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> main(</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> , </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">char</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> **)</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">{</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">//// variable</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">const</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">unsigned</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> Dimension = 3;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">float</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">OutputPixelType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#ifdef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#6f008a">USE_CUDA</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> itk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">CudaImage</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">< </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">OutputPixelType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">, Dimension > </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">OutputImageType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#else</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> itk::Image< OutputPixelType, Dimension > OutputImageType;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#endif</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">////////////////////////////////////////////////////////////////////////////////////////////////////</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// Generate file names of projections</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">itk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">RegularExpressionSeriesFileNames</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">Pointer</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> names = itk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">RegularExpressionSeriesFileNames</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::New();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">names->SetDirectory(std::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">string</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#a31515">"d://RTK/build/bin/Release/Scan1/"</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">));</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">names->SetRegularExpression(std::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">string</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#a31515">"Proj_.*.hnd"</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">));</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:green">////////////////////////////////////////////////////////////////////////////////////////////////////</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">//// geometry</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// Defines the RTK geometry object</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> rtk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ThreeDCircularProjectionGeometry</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">GeometryType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">GeometryType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">Pointer</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> geometry = </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">GeometryType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::New();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// Projection matrices</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">unsigned</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> numberOfProjections = 86;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">unsigned</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> firstAngle = 0;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">unsigned</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> angularArc = 360;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">unsigned</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> sid = 1000; </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">unsigned</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> sdd = 1200; </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> isox = 0; </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> isoy = 0 ;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">for</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">(</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">unsigned</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">int</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> noProj=0; noProj<numberOfProjections; noProj++)</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">{</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">double</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> angle = (</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">float</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">)firstAngle + (</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">float</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">)noProj * angularArc / (</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">float</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">)numberOfProjections;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">geometry->AddProjection(sid,</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">sdd,</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">angle,</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">isox,</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">isoy);</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">}</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">/////////////////////////////////////////////////////////////////////////////////////////////////////</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// Projections reader</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> rtk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ProjectionsReader</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">< </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">OutputImageType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> > </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ReaderType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ReaderType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">Pointer</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> reader = </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ReaderType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::New();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">reader->SetFileNames(names->GetFileNames());</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// Create reconstructed image ////////////////////////////////////</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> rtk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ConstantImageSource</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">< </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">OutputImageType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> > </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ConstantImageSourceType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ConstantImageSourceType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">Pointer</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> ImageSource = </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ConstantImageSourceType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::New();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ConstantImageSourceType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">PointType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> origin;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ConstantImageSourceType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">SizeType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> sizeOutput;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ConstantImageSourceType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">SpacingType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> spacing;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">origin[0] = -127.75;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">origin[1] = -127.75;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">origin[2] = -127.75;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">  </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">sizeOutput[0] = 512;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">sizeOutput[1] = 512;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">sizeOutput[2] = 512;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">spacing[0] = .5;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">spacing[1] = .5;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">spacing[2] = .5;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">ImageSource->SetOrigin( origin );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">ImageSource->SetSpacing( spacing );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">ImageSource->SetSize( sizeOutput );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">ImageSource->SetConstant( 0. ); </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// getchar(); //////////////////////////////////////</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">std::cout << </span><span style="font-size:10.0pt;font-family:Consolas;color:#a31515">"Performing reconstruction"</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> << std::endl;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// FDK reconstruction filtering</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// FDK reconstruction filtering</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#ifdef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#6f008a">USE_CUDA</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> rtk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">CudaFDKConeBeamReconstructionFilter</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">FDKType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#elif</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> USE_OPENCL</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> rtk::OpenCLFDKConeBeamReconstructionFilter FDKType;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#else</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> rtk::FDKConeBeamReconstructionFilter< OutputImageType > FDKType;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">#endif</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">FDKType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">Pointer</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> feldkamp = </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">FDKType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::New();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">feldkamp->SetInput( 0, ImageSource->GetOutput() );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">feldkamp->SetInput( 1, reader->GetOutput());</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">feldkamp->SetGeometry( geometry);</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#6f008a">TRY_AND_EXIT_ON_ITK_EXCEPTION</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">( feldkamp->Update() );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">std::cout << </span><span style="font-size:10.0pt;font-family:Consolas;color:#a31515">"Writing output image"</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> << std::endl;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:green">// Writer</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> itk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">Image</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">< </span><span style="font-size:10.0pt;font-family:Consolas;color:blue">float</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">, 3 > </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ImageType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">typedef</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> itk::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ImageFileWriter</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">ImageType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">> </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">WriterType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">;</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">WriterType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::</span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">Pointer</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> writer = </span><span style="font-size:10.0pt;font-family:Consolas;color:#2b91af">WriterType</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">::New();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">writer->SetFileName( </span><span style="font-size:10.0pt;font-family:Consolas;color:#a31515">"output11.mha"</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">writer->SetInput( feldkamp->GetOutput() );</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">writer->Update();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> </span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">getchar();</span><u></u><u></u></p><p><span style="font-size:10.0pt;font-family:Consolas;color:blue">return</span><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"> 0;</span><u></u><u></u></p></div></div><div><p><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">}</span><u></u><u></u></p></div></div></div></div></div></blockquote></div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p></div></div><pre>_______________________________________________<u></u><u></u></pre><pre>Rtk-users mailing list<u></u><u></u></pre><pre><a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><u></u><u></u></pre><pre><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></pre></blockquote><p class="MsoNormal"> <u></u><u></u></p></div></blockquote></div><p class="MsoNormal"> <u></u><u></u></p></div></blockquote></div></div></div></blockquote></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div><p></p></div></div></div></div><br>_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br>
<br></blockquote></div><br></div>