[Rtk-users] RTK crashes silently when calling Update in Python

Christian Mørup chrmorup at gmail.com
Thu Nov 21 05:49:34 EST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20191121/25378871/attachment.html>


More information about the Rtk-users mailing list