[ITK] Detecting DICOM file
Dženan Zukić
dzenanz at gmail.com
Fri Apr 7 13:17:28 EDT 2017
Hi Fijoy,
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.
Regards,
Dženan
On Fri, Apr 7, 2017 at 11:56 AM, Fijoy Vadakkumpadan <tofijoy at gmail.com>
wrote:
> Hello,
>
> Does ITK offer a function to determine whether or not a given file path
> corresponds to a DICOM image?
>
> Asking because DICOM standard does not require file names to have a ".dcm"
> or any other extension.
>
> Thanks,
> --Fijoy
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170407/3566fc58/attachment.html>
More information about the Community
mailing list