[ITK-users] sitk.ReadImage for known deformation fields in dcm or niftii
C Juan <[email protected]> Wed, 4 Jul 2018 17:56:03 +0200
| Newsgroups | gmane.comp.lib.itk.user |
|---|---|
| Message-ID | <CAFtg9AKUoK0BbJiuSRr5Di9K1TVxE01ExAj+f6v+Dt6ybCLDgw@mail.gmail.com> |
--===============0608367696==
Content-Type: multipart/alternative; boundary="000000000000cd7c6005702e7715"
--000000000000cd7c6005702e7715
Content-Type: text/plain; charset="UTF-8"
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!
--000000000000cd7c6005702e7715
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi all,<div><br></div><div>I am new user of=C2=A0 SimpleIT=
K and for a project I want to read a known deformation field, previously ca=
lculated from another software, which is stored in dcm format, (could be al=
so in Nifti format).=C2=A0</div><div><br></div><div>When I use:</div><div><=
br></div><div><pre style=3D"background-color:rgb(255,255,255);color:rgb(0,0=
,0);font-family:"Courier New";font-size:9pt">dis =3D <span style=
=3D"background-color:rgb(228,228,255)">sitk</span>.ReadImage('dvf.dcm&#=
39;, <span style=3D"background-color:rgb(228,228,255)">sitk</span>.sitkVect=
orFloat64)</pre><br></div><div><span style=3D"font-size:small;background-co=
lor:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:in=
itial;float:none;display:inline">Throws the error:</span></div><div><br></d=
iv><div>RuntimeError: Exception thrown in SimpleITK ReadImage: C:\d\VS14-Wi=
n64-pkg\SimpleITK\Code\IO\src\sitkImageFileReader.cxx:248:</div><div>sitk::=
ERROR: The file has unsupported 5 dimensions.=C2=A0<br></div><div><br></div=
><div>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.<br><br>Thanks!=C2=A0=C2=A0</div><div><br></div></div>
--000000000000cd7c6005702e7715--
--===============0608367696==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
--===============0608367696==--