<html><head></head><body><div>Hi,</div><div><br></div><div>Your first error is really strange. The "geometry" variable is supposed to be typed as rtkThreeDCircularProjectionGeometry (defined line 14), while according to your error message it is of type rtkFDKConeBeamReconstructionFilter. Are you sure you haven't somehow altered the example script?</div><div><br></div><div>About your second question, you can use rtkFDKConeBeamReconstructionFilter and provide it a parallel geometry. See the documentation for more details : <a href="http://www.openrtk.org/Doxygen/classrtk_1_1FDKConeBeamReconstructionFilter.html">http://www.openrtk.org/Doxygen/classrtk_1_1FDKConeBeamReconstructionFilter.html</a>.</div><div><br></div><div>Don't hesitate if something remains unclear!</div><div><br></div><div>Aurélien.</div><div><br></div><div>On Tue, 2020-04-21 at 12:06 +0900, 나윤호 wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><font size="3">Hi.</font><div><font size="3">I'm a newbie to ITK and RTK.</font></div><div><font size="3">I'm currently using python not C++</font></div><div><font size="3"><br></font></div><div><font size="3">so I installed ITK package and RTK package using</font></div><div><br></div><div>pip install itk</div><div>pip install itk-rtk</div><div><br></div><div>using ITK seems OK, but I'm having difficulties with RTK.</div><div><br></div><div>When I run the ITK example code, It worked well. </div><div>but when I tried to run the FirstReconstruction.py in the github,</div><div>error occurrs.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:1px 0px;margin-top:0px;margin-bottom:0px;line-height:inherit;color:rgb(0,0,0);word-break:break-all;border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><pre style="box-sizing:border-box;overflow:auto;padding:1px 0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-break:break-all;border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><span class="gmail-ansi-red-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,43,49);font-weight:bold">---------------------------------------------------------------------------</span>
<span class="gmail-ansi-red-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,43,49);font-weight:bold">AttributeError</span> Traceback (most recent call last)
<span class="gmail-ansi-green-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold"><ipython-input-1-be2ee9c70d3d></span> in <span class="gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)"><module></span>
<span class="gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)"> 19</span> <span class="gmail-ansi-green-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">for</span> x <span class="gmail-ansi-green-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">in</span> range<span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">(</span><span class="gmail-ansi-cyan-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(37,143,143);font-weight:bold">0</span><span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">,</span>numberOfProjections<span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">)</span><span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">:</span>
<span class="gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)"> 20</span> angle <span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">=</span> firstAngle <span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">+</span> x <span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">*</span> angularArc <span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">/</span> numberOfProjections
<span class="gmail-ansi-green-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">---> 21</span><span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold"> </span>geometry<span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">.</span>AddProjection<span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">(</span>sid<span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">,</span>sdd<span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">,</span>angle<span class="gmail-ansi-yellow-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,125,18);font-weight:bold">)</span>
<span class="gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)"> 22</span>
<span class="gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)"> 23</span> <span class="gmail-ansi-red-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,43,49);font-weight:bold"># Writing the geometry to disk</span>
<span class="gmail-ansi-red-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(178,43,49);font-weight:bold">AttributeError</span>: 'rtkFDKConeBeamReconstructionFilterIF3' object has no attribute 'AddProjection'</pre></pre><br></blockquote><div> </div><div>How can I fix this problem?</div><div><br></div><div>and I have another question.</div><div>I want the reconstruct the sinogram image to phantom.</div><div><br></div><div>usually what I did was using skimage.transform.iradon().</div><div>what should I use in RTK to do Inverse radon transform or Filtered back projection method?</div><div> </div><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/4be322cde9e1d4a7560cf8e2cb5c0aa1bf774ea6.png?u=4672561"></div>
<pre>_______________________________________________
Rtk-users mailing list
<a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a>
<a href="https://public.kitware.com/mailman/listinfo/rtk-users">https://public.kitware.com/mailman/listinfo/rtk-users</a>
</pre></blockquote></body></html>