[Rtk-users] reading Elekta database projections

Simon Rit simon.rit at creatis.insa-lyon.fr
Mon Jul 18 15:52:12 UTC 2022


Hi,
Good! Please stay on the mailing list. This code should work:
reader = rtk.ThreeDCircularProjectionGeometryXMLFileReader.New()
reader.SetFilename('g')
reader.GenerateOutputInformation()
geometry = reader.GetOutputObject()
Simon


On Mon, Jul 18, 2022 at 5:48 PM Rupesh Gupta <grupesh at umich.edu> wrote:

> Hi Simon,
> Thanks, this works. Could you please also describe how to read geometry
> from the xml file into a geometry variable?
> Thanks a lot.
>
>
> Best,
> Rupesh
>
>
> On Mon, Jul 18, 2022 at 2:08 AM Simon Rit <simon.rit at creatis.insa-lyon.fr>
> wrote:
>
>> 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
>>>
>>
>
> --
> Rupesh Gupta
> Graduate Student
> Department of Electrical and Computer Engineering,
> University of Michigan-Ann Arbor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20220718/f33506e5/attachment.htm>


More information about the Rtk-users mailing list