[vtkusers] ActiViz | SetFileNames

Matias Montroull matimontg at gmail.com
Tue Feb 11 19:49:28 EST 2014


Hi,

I have this code:

  vtkStringArray images = new vtkStringArray();

The I do this:

foreach (string filename in ofdmulti.FileNames)
                    {
     images.InsertNextValue(filename);
}

then:

  vtkDICOMImageReader reader = vtkDICOMImageReader.New();
                        reader.SetFileNames(arraydeimagenes);
                        reader.Update();

And for some reason, the files are not parsed to the reader, I have this:

{vtkDICOMImageReader (0C6FB328)
  Debug: Off
  Modified Time: 7101
  Reference Count: 2
  Registered Events: (none)
  Executive: 0C6DECD0
  ErrorCode: NoFileNameError
  Information: 0C707928
  AbortExecute: Off
  Progress: 1
  Progress Text: (None)
  FileName: (none)
 * FileNames: 0C6EC430*
  FilePrefix: (none)
  FilePattern: %s.%d
  FileNameSliceOffset: 0
  FileNameSliceSpacing: 1
  DataScalarType: short
  NumberOfScalarComponents: 1
  File Dimensionality: 2
  File Lower Left: Off
  Swap Bytes: Off
  DataIncrements: (1, 1)
  DataExtent: (0, 0, 0, 0, 0, 1)
  DataSpacing: (1, 1, 1)
  DataOrigin: (0, 0, 0)
  HeaderSize: 0
  Internal File Name: (none)
*DirectoryName : (NULL)*
*FileName : (NULL)*

And I get this error:
RROR: In
..\..\..\..\vtksource-prefix\src\vtksource\IO\vtkDICOMImageReader.cxx, line
256
vtkDICOMImageReader (0C6FB328): Either a filename was not specified or the
specified directory does not contain any DICOM images.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140211/bd672d89/attachment.html>


More information about the vtkusers mailing list