<div dir="ltr">Hi Xie,<div><br></div><div>Just out of curiosity, why do you want to read images with a specific level/window pre-set? After all, those are just (recommended) <b>viewer</b> settings. I mean, you can set level/window to whatever you want, but the pixel-data remain the same.</div><div><br></div><div>Greetings,</div><div>Lambert</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 7:51 PM, Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@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 class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Xie,</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">maybe you can use ImageIO to <a href="http://itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType" target="_blank">read image</a> information for all the series (just one file from each series should be enough). Then examine the metadata to see whether window conditions are met, and if they are then read the series.</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">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 1:37 AM, 谢玮宜 <span dir="ltr"><<a href="mailto:weiehome@sina.com" target="_blank">weiehome@sina.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
I want to read dicom series that only contains tags like window center and<br>
window width in a certain range, and I don’t know how to do it using<br>
gdcmImage io in itk.<br>
I have read some dicom series reader examples but I still didn't figured<br>
out. The GDCMSeriesFileNames seems not designed for this case.<br>
<br>
<br>
typedef itk::GDCMSeriesFileNames NamesGeneratorType;<br>
NamesGeneratorType::Pointer nameGenerator =<br>
NamesGeneratorType::New();<br>
<br>
nameGenerator->SetUseSeriesDetails(true);<br>
nameGenerator->AddSeriesRestriction("0008|0021");<br>
nameGenerator->AddSeriesRestriction("0018|0024");<br>
nameGenerator->AddSeriesRestriction("0020|0011");<br>
nameGenerator->AddSeriesRestriction("0018|0050");<br>
nameGenerator->AddSeriesRestriction("0028|0010");<br>
nameGenerator->AddSeriesRestriction("0028|0011");<br>
nameGenerator->SetDirectory(filePath);<br>
the given file path contains 3 dicom series with different window center and<br>
window width settings ,yet only one is what I am interested in.<br>
I know I can read all series first and then read each series to check if its<br>
tags meets my requirements. However, it is slow. What I want is a gdcm<br>
support for filtering files in its reading.<br>
<br>
Thanks for your answers in advance!<br>
BR,xie<br>
<br>
<br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<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/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>