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 <grup...@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@public.kitware.com
> https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users
>
_______________________________________________
Rtk-users mailing list
Rtk-users@public.kitware.com
https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users

Reply via email to