<div dir="ltr"><div><div>Dear Andras, all,<br></div>I did try with 3D Slicer but the 4D sequence is not loaded correctly (slices are not loaded in the right order). One issue that I see is that each Dicom series is actually a semi-volume (e.g. the upper or lower part of a volume) thus it requires some merging of the data before writing. I am writing some code even though I thought there would be more examples of similar import routine developed in the past. I will keep you posted if i make any progress<br></div>regards <br><div><div><div><br> <br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-11 6:25 GMT+02:00 Andras Lasso <span dir="ltr"><<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">3D Slicer can load some 4D CTs a 3D+t sequence and you cab save it as a 4D nrrd. You may give it a try. If it doesn't work for your sequence then report the problem on the slicer-users mailing list. If you can provide
a sample data set then slicer developers most likely will be able to make it work.</span><span lang="EN-US"></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Andras</p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span></p>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>From: </b><a href="mailto:marco.giord@gmail.com" target="_blank">marco giordano</a><br>
<b>Sent: </b>June 10, 2016 17:32<br>
<b>To: </b><a href="mailto:scapegoat.sarthak@gmail.com" target="_blank">Scapegoat Sarthak</a><br>
<b>Cc: </b><a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
<b>Subject: </b>Re: [ITK] [ITK-users] Read 4D CT cardiac dicom series and save it as a single 4D nifti file</p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span></p>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div>
<div>Hi there,<br>
<br>
</div>
Thanks for the suggestions. VV is not really an option since I have to analyze many cases. I even tried to use VV but it gives me the wrong order of the slices.<br>
<br>
I am trying the "itk::ImageSeriesReader" (right?) but it is complaining that "Position is not unique". I think it refers to the fact that the slices in my "series" have the "same location". Not sure this is meant to transform 2D into 4D if it expects different
locations, maybe it is for 2D into 3D. Any idea?<br>
<br>
</div>
Regards<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-06-09 17:21 GMT+02:00 Scapegoat Sarthak <span dir="ltr">
<<a href="mailto:scapegoat.sarthak@gmail.com" target="_blank">scapegoat.sarthak@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">You can do it pretty easily:
<div><br>
</div>
<div>Read DICOM using SeriesFileReader and then connect output to a FileWriter with the file name of your choice (in this case, it would be "output.nii.gz").
<div>
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 9 June 2016 at 11:06, Mohammad Varasteh <span dir="ltr">
<<a href="mailto:varasteh@to.infn.it" target="_blank">varasteh@to.infn.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Marco,<br>
<br>
Actually I do not know how to do it in the ITK but for such cases (if it is<br>
few cases) I normally use "VV: the 4D slicer". You can find it in the<br>
following link:<br>
<br>
<a href="http://www.creatis.insa-lyon.fr/rio/vv" rel="noreferrer" target="_blank">http://www.creatis.insa-lyon.fr/rio/vv</a><br>
<br>
I hope this will be of some use.<br>
<br>
Varasteh<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Read-4D-CT-cardiac-dicom-series-and-save-it-as-a-single-4D-nifti-file-tp7588962p7588963.html" rel="noreferrer" target="_blank">
http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Read-4D-CT-cardiac-dicom-series-and-save-it-as-a-single-4D-nifti-file-tp7588962p7588963.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div>Marco Giordano<br>
SKYPE:marcogiord81</div>
</div>
</div>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Marco Giordano<br>SKYPE:marcogiord81</div>
</div>