[vtkusers] Error: vtkDICOMImageReader.cxx, line 333

Flaviu2 flaviu2 at yahoo.com
Wed Jun 15 02:41:49 EDT 2016


Thank you Dean, I will try to do that. 

    On Tuesday, June 14, 2016 4:43 PM, Dean Inglis <inglis.dl at gmail.com> wrote:
 

 Hi Flaviu,

it seems like you are expecting the reader to look for a series of individual
slice files within a directory, but maybe you are just trying to read a single
volume in one file.  Try this:

if( reader->CanReadFile( "your_file.dcm" ) )
{
  reader->SetFileName( "your_file.dcm" );
  reader->Update();
  // do other stuff ...
}

- Dean


On Tue, Jun 14, 2016 at 9:14 AM, Flaviu2 via vtkusers <vtkusers at vtk.org> wrote:

 Hi all of you. I have a very simple code:
 vtkSmartPointer<vtkDICOMImageReader> reader =
  vtkSmartPointer<vtkDICOMImageReader>::New();
 reader->SetDirectoryName(_T("D:\\Tempx\\Birtoc\\"));
 reader->Update();
"Birtoc" is a CT series, axial, 125, with 778 images. But the program get me an error:
ERROR: In ..\..\..\IO\Image\vtkDICOMImageReader.cxx, line 333
vtkDICOMImageReader (032F3428): There was a problem retrieving data from: D:\Tempx\Birtoc\/001_2300802301961 _BIRTOC MARIA.dcm

ERROR: In ..\..\..\Common\ExecutionModel\vtkExecutive.cxx, line 784
vtkCompositeDataPipeline (032F4260): Algorithm vtkDICOMImageReader(032F3428) returned failure for request: vtkInformation (03300D30)

  Debug: Off
  Modified Time: 135
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
  FROM_OUTPUT_PORT: 0

My question is: I have done something wrong ? I mention that on other CT series, I have not any error ... can you help me ? I am stuck here ...
Flaviu.

_______________________________________________
Powered by http://www.kitware.com/

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers





  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160615/c309ce92/attachment.html>


More information about the vtkusers mailing list