<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Oren,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">does <a href="https://itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1ImageSeriesReader.html">ImageSeriesReader</a> work for you?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default"><font face="verdana, sans-serif">Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)</font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 14, 2017 at 3:11 AM, Oren <span dir="ltr"><<a href="mailto:oren.a4@gmail.com" target="_blank">oren.a4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div>I do not understand if sitk.ReadImage can read a list of images or not? I did not manage to find an example showing how to list of images should be imputed to the function.<div>But in the function documentations it say:</div><div><br></div><div><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:0.4em;margin-top:0px;margin-bottom:9px;line-height:1.21429em;word-break:break-all;word-wrap:break-word;color:rgb(0,0,0);background-color:rgb(247,247,247);border:1px solid rgb(204,204,204);border-radius:2px;white-space:pre-wrap">ReadImage(<b>VectorString fileNames</b>, itk::simple::PixelIDValueEnum outputPixelType) -> Image
ReadImage(std::string const & filename, itk::simple::PixelIDValueEnum outputPixelType) -> Image



ReadImage is a procedural interface to the ImageSeriesReader class which is convenient for most image reading tasks.


Note that when <b>reading a series of images</b> that have meta-data
associated with them (e.g. a DICOM series) the resulting image will
have an empty meta-data dictionary. It is possible to programmatically
add a meta-data dictionary to the compounded image by reading in one
or more images from the series using the ImageFileReader class,
analyzing the meta-dictionary associated with each of those images and
creating one that is relevant for the compounded image.</pre><br><br>So it seems from the documentations that it is possible. Can someone show me a simple example.<br><br></div><div>I also posted the question in stackoverflow in case anyone else will ask it in the future:</div><div><br></div><div><a href="https://stackoverflow.com/questions/45096861/can-python-sitk-readimage-read-a-list-series-of-images" target="_blank">https://stackoverflow.com/<wbr>questions/45096861/can-python-<wbr>sitk-readimage-read-a-list-<wbr>series-of-images</a><br></div><div><br></div><div><div>Thanks.</div><div><br></div></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>