<div dir="ltr">Hi,<div><br></div><div>I have this code:</div><div><br></div><div> vtkStringArray images = new vtkStringArray();<br></div><div><br></div><div>The I do this:</div><div><br></div><div><div>foreach (string filename in ofdmulti.FileNames)</div>
<div> {</div></div><div> images.InsertNextValue(filename);<br></div><div>}</div><div><br></div><div>then:</div><div><br></div><div><div> vtkDICOMImageReader reader = vtkDICOMImageReader.New();</div>
<div> reader.SetFileNames(arraydeimagenes);</div><div> reader.Update();</div></div><div><br></div><div>And for some reason, the files are not parsed to the reader, I have this:</div>
<div><br></div><div><div>{vtkDICOMImageReader (0C6FB328)</div><div> Debug: Off</div><div> Modified Time: 7101</div><div> Reference Count: 2</div><div> Registered Events: (none)</div><div> Executive: 0C6DECD0</div><div>
ErrorCode: NoFileNameError</div><div> Information: 0C707928</div><div> AbortExecute: Off</div><div> Progress: 1</div><div> Progress Text: (None)</div><div> FileName: (none)</div><div> <b> FileNames: 0C6EC430</b></div>
<div> FilePrefix: (none)</div><div> FilePattern: %s.%d</div><div> FileNameSliceOffset: 0</div><div> FileNameSliceSpacing: 1</div><div> DataScalarType: short</div><div> NumberOfScalarComponents: 1</div><div> File Dimensionality: 2</div>
<div> File Lower Left: Off</div><div> Swap Bytes: Off</div><div> DataIncrements: (1, 1)</div><div> DataExtent: (0, 0, 0, 0, 0, 1)</div><div> DataSpacing: (1, 1, 1)</div><div> DataOrigin: (0, 0, 0)</div><div> HeaderSize: 0</div>
<div> Internal File Name: (none)</div><div><b>DirectoryName : (NULL)</b></div><div><b>FileName : (NULL)</b></div><div><br></div></div><div>And I get this error:</div><div><div>RROR: In ..\..\..\..\vtksource-prefix\src\vtksource\IO\vtkDICOMImageReader.cxx, line 256</div>
<div>vtkDICOMImageReader (0C6FB328): Either a filename was not specified or the specified directory does not contain any DICOM images.</div></div><div><br></div></div>