[vtkusers] ActiViz | SetFileNames

Bill Lorensen bill.lorensen at gmail.com
Wed Feb 12 10:32:54 EST 2014


What is arraydeimagenes?


On Tue, Feb 11, 2014 at 7:49 PM, Matias Montroull <matimontg at gmail.com> wrote:
> 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.
>
>
> _______________________________________________
> Powered by 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list