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 <grup...@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....@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 <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 >>> >> > > -- > 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