<div dir="ltr">Hi Dženan,<br><br>I just found that itk::GDCMImageIO has a CanReadFile() function. I'll try that.<div><br></div><div>Thanks,</div><div>--Fijoy<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 7, 2017 at 1:17 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 style="font-family:verdana,sans-serif;font-size:small">Hi Fijoy,</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div><div style="font-family:verdana,sans-serif;font-size:small">I am not sure about such a function, but you could try reading it using gdcm reader IO, and if it throws an exception it is not.</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div><div style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 7, 2017 at 11:56 AM, Fijoy Vadakkumpadan <span dir="ltr"><<a href="mailto:tofijoy@gmail.com" target="_blank">tofijoy@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello,<div><br></div><div>Does ITK offer a function to determine whether or not a given file path corresponds to a DICOM image?</div><div><br></div><div>Asking because DICOM standard does not require file names to have a ".dcm" or any other extension.</div><div><br></div><div>Thanks,</div><div>--Fijoy</div></div>
<br></div></div>______________________________<wbr>_________________<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/mail<wbr>man/listinfo/community</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>