[Rtk-users] using RTK with python

Aurélien Coussat aurelien.coussat at creatis.insa-lyon.fr
Tue Apr 21 03:58:16 EDT 2020


Hi,
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?
About your second question, you can use
rtkFDKConeBeamReconstructionFilter and provide it a parallel geometry.
See the documentation for more details : http://www.openrtk.org/Doxygen
/classrtk_1_1FDKConeBeamReconstructionFilter.html.
Don't hesitate if something remains unclear!
Aurélien.
On Tue, 2020-04-21 at 12:06 +0900, 나윤호 wrote:
> Hi.I'm a newbie to ITK and RTK.
> I'm currently using python not C++
> 
> 
> so I installed ITK package and RTK package using
> 
> pip install itk
> pip install itk-rtk
> 
> using ITK seems OK,  but I'm having difficulties with RTK.
> 
> When I run the ITK example code, It worked well. 
> but when I tried to run the FirstReconstruction.py in the github,
> error occurrs.
> 
> > -----------------------------------------------------------------
> > ----------
> > AttributeError                            Traceback (most recent
> > call last)
> > <ipython-input-1-be2ee9c70d3d> in <module>
> >      19 for x in range(0,numberOfProjections):
> >      20   angle = firstAngle + x * angularArc / numberOfProjections
> > ---> 21   geometry.AddProjection(sid,sdd,angle)
> >      22 
> >      23 # Writing the geometry to disk
> > 
> > AttributeError: 'rtkFDKConeBeamReconstructionFilterIF3' object has
> > no attribute 'AddProjection'
>  
> How can I fix this problem?
> 
> and I have another question.
> I want the reconstruct the sinogram image to phantom.
> 
> usually what I did was using skimage.transform.iradon().
> what should I use in RTK to do Inverse radon transform or Filtered
> back projection method?
>  
> 
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/mailman/listinfo/rtk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20200421/b1c27046/attachment.html>


More information about the Rtk-users mailing list