I try to use vtkGDCMImageReader to read the DICOM files, but an access violation occurred occurred when I call the update method. Here is my code:
vtkGDCMImageReader * reader = vtkGDCMImageReader::New();
reader->SetFileName("IMG00000");
reader->Update();
Is there any thing wrong with the code or simply because I didn't compile the VTK wrapper of GDCM correctly. Can someone give me an example? Many thanks.