[vtkusers] DICOM reader

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Apr 10 09:32:12 EDT 2007


Hi Patrick

  No there is no such things. You have to do it yourself: do a loop
over all the files calling CanReadFile on each of them.

HTH
-Mathieu

On 4/9/07, Patrick D. Emond <patrickdemond at gmail.com> wrote:
> Hello,
>
> I'm using vtkDICOMImageReader with the SetDirectoryName() function to
> load a bunch of images in a single directory.  Is there any way to
> determine if there are any valid DICOM files in the selected directory?
>   The only way I see of doing this is to update the image reader and
> check if the data increments are (1, 1) or not.  Is there a better way
> of doing this?
>
> Just to be clear, I'm not looking for a CanReadFile() method, since this
> method can only detect if a single file is readable, not a list of files
> in a directory.
>
> Cheers,
> Patrick
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>


-- 
Mathieu
Tel: +33 6 32 13 33 40



More information about the vtkusers mailing list