<div dir="ltr">Hi,<div><br></div><div>I did that, but it gives me the error:</div><div><br></div><div>itk::ExceptionObject <...></div><div>Location: "void __thiscall itk::ImageSeriesReader<class itk::Image<short,3>::GenerateOutputInformation(void)"</div><div>File ...ImageSeriesReader.hxx: Line 122<br>At least one filename is required.</div><div><br></div><div><span style="font-size:16px">Instead of ./ExternalData/Testing/Data/</span><span style="font-size:16px">Input/DicomSeries (which is a directory), I've tried a dcm file, for example. The error is the same.</span><br></div><div><span style="font-size:16px"><br></span></div><div><span style="font-size:16px">I'm on Windows, so I did on cmd:</span></div><div><span style="font-size:16px"><br></span></div><div><span style="font-size:16px"><br></span></div><div>C:\ITK-4.8.0-build> bin\Debug\DicomSeriesReadPrintTags.exe <span style="font-size:16px">/ExternalData/Testing/Data/</span><span style="font-size:16px">Input/DicomSeries</span></div><div><span style="font-size:16px"><br></span></div><div><span style="font-size:16px">And also:</span></div><div>C:\ITK-4.8.0-build> bin\Debug\DicomSeriesReadPrintTags.exe <span style="font-size:16px">C:\myfile.dcm<br></span></div><div><span style="font-size:16px"><br></span></div><div><span style="font-size:16px"><br></span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-29 23:44 GMT+02:00 Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Marcos,<br>
<br>
If BUILD_EXAMPLES and BUILD_TESTING is turned on in your ITK CMake<br>
configuration, and the ITKData target has been built, the example and<br>
testing data are available in the build tree. Run<br>
<br>
./bin/DicomSeriesReadPrintTag ./ExternalData/Testing/Data/Input/DicomSeries<br>
<br>
and the tags will be printed out.<br>
<br>
Hope this helps,<br>
Matt<br>
<div><div class="h5"><br>
<br>
<br>
On Sat, Aug 29, 2015 at 4:51 PM, Marcos <<a href="mailto:fotosentido@gmail.com">fotosentido@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm using this example:<br>
> <a href="http://www.itk.org/Doxygen/html/Examples_2IO_2DicomSeriesReadPrintTags_8cxx-example.html" rel="noreferrer" target="_blank">http://www.itk.org/Doxygen/html/Examples_2IO_2DicomSeriesReadPrintTags_8cxx-example.html</a><br>
><br>
> to try to get metadata info, but it never gets into the while:<br>
><br>
> typedef itk::MetaDataDictionary DictionaryType;<br>
><br>
> itk::GDCMImageIO::Pointer dicomIO = itk::GDCMImageIO::New();<br>
><br>
> const DictionaryType &dic = dicomIO->GetMetaDataDictionary();<br>
><br>
><br>
> typedef itk::MetaDataObject<std::string> MetadataStringType;<br>
><br>
> DictionaryType::ConstIterator itr = dic.Begin();<br>
><br>
> DictionaryType::ConstIterator end = dic.End();<br>
><br>
><br>
> while (itr != end)<br>
><br>
> {<br>
><br>
> ...<br>
><br>
> }<br>
><br>
><br>
><br>
> It doesn't depend on the file, I'm using it inside that while. But I never<br>
> get into. The two iterators are the same? Why?<br>
><br>
><br>
> I'm using ITK 4.8.0.<br>
><br>
><br>
> The code is fine, right?<br>
><br>
><br>
> Thanks.<br>
><br>
><br>
</div></div>> _____________________________________<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></div>