[Rtk-users] reading Elekta database projections

Simon Rit simon.rit at creatis.insa-lyon.fr
Mon Jul 18 06:08:29 UTC 2022


Hi,
To read in the projections, you should create an array with the filenames
(name filenames below) and then
ImageType = itk.Image[itk.F, 3]
proj = rtk.ProjectionsReader[ImageType].New()
proj.SetFileNames(filenames)
proj.Update()
nparray = itk.GetArrayFromImage(proj.GetOutput())
This should work.
Simon

On Thu, Jul 14, 2022 at 9:34 PM Rupesh Gupta <grupesh at umich.edu> wrote:

> Hi all,
> I want to be able to read the CBCT projection frames in .his format
> available on this page -
> https://wiki.openrtk.org/index.php/RTK/Examples/MCCBCTReconstruction#Projection_images
>
> How can I do this using RTK python code that reads the .his images and
> stores them into a numpy array?
>
>
> Best,
> Rupesh
>
> --
> Rupesh Gupta
> Graduate Student
> Department of Electrical and Computer Engineering,
> University of Michigan-Ann Arbor
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20220718/dbab8830/attachment.htm>


More information about the Rtk-users mailing list