Hi,
Thanks for reporting, I guess you can open an issue on github. Can you try
to see if it works better with 3D images (CPUImageType =
rtk.Image[itk.F,3])? We mainly use the projections reader to load a stack
of projections. If not, can you share your projection?
Best regards,
Simon


On Thu, Nov 21, 2019 at 11:50 AM Christian Mørup <[email protected]> wrote:

> Hi,
>
> We are currently trying to convert files in .xim-format to .mha-format by
> using RTK in Python. Our code is as follows:
>
> import sysimport itkfrom itk import RTK as rtkimport inspect
>
> CPUImageType = rtk.Image[itk.F,2]
> reader = itk.ProjectionsReader[CPUImageType].New()
> reader.SetFileNames("C:/xxx/Proj_0001.xim")
> reader.SetDebug(True)
> print("Updating...")
> reader.Update()print("Update done")
> img = reader.GetOutput()
>
> For some reason Update() crashes without any stacktrace. Does anyone have any 
> idea why this is happening?
>
> Best regards,
>
> Christian Mørup
>
> _______________________________________________
> Rtk-users mailing list
> [email protected]
> https://public.kitware.com/mailman/listinfo/rtk-users
>
_______________________________________________
Rtk-users mailing list
[email protected]
https://public.kitware.com/mailman/listinfo/rtk-users

Reply via email to