[ITK] Detecting DICOM file

Fijoy Vadakkumpadan tofijoy at gmail.com
Fri Apr 7 13:28:03 EDT 2017


Hi Dženan,

I just found that itk::GDCMImageIO has a CanReadFile() function. I'll try
that.

Thanks,
--Fijoy

On Fri, Apr 7, 2017 at 1:17 PM, Dženan Zukić <dzenanz at gmail.com> wrote:

> 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/fc4ee023/attachment.html>


More information about the Community mailing list