[ITK] [ITK-users] sitk.ReadImage for known deformation fields in dcm or niftii

Andras Lasso lasso at queensu.ca
Wed Jul 4 12:38:17 EDT 2018


I think 3D Slicer can import registration objects from DICOM. You can either save the displacement field to file or use SimpleITK in 3D Slicer. To further discuss this, please post on ITK forum (https://discourse.itk.org/).

Andras

From: Community <community-bounces at itk.org> On Behalf Of C Juan
Sent: Wednesday, July 4, 2018 11:56 AM
To: insight-users at itk.org
Subject: [ITK] [ITK-users] sitk.ReadImage for known deformation fields in dcm or niftii

Hi all,

I am new user of  SimpleITK and for a project I want to read a known deformation field, previously calculated from another software, which is stored in dcm format, (could be also in Nifti format).

When I use:


dis = sitk.ReadImage('dvf.dcm', sitk.sitkVectorFloat64)

Throws the error:

RuntimeError: Exception thrown in SimpleITK ReadImage: C:\d\VS14-Win64-pkg\SimpleITK\Code\IO\src\sitkImageFileReader.cxx:248:
sitk::ERROR: The file has unsupported 5 dimensions.

I am not really sure if simply using ReadImage is the right approach. I would really appreciate if you can give me some ideas how to solve this issue.

Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://itk.org/pipermail/community/attachments/20180704/667245ee/attachment.html>
-------------- next part --------------
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users


More information about the Community mailing list