[vtkusers] StructuredGridReader Error
Peter Schmitt
pschmitt at gmail.com
Fri Jun 24 15:27:48 EDT 2005
Have you tried putting the file in
C:\A.vtk
and running your code with the direct path to open the file?
On 6/24/05, Kyle Johnson <krj at seas.upenn.edu> wrote:
> Here is the first header:
>
> # vtk DataFile Version 3.0
> VTK File Generated by Insight Segmentation and Registration Toolkit (ITK)
> BINARY
> DATASET STRUCTURED_POINTS
> DIMENSIONS 256 256 124
> SPACING 0.9375 0.9375 1.5
> ORIGIN 0 0 0
> POINT_DATA 8126464
> SCALARS scalars unsigned_char 1
> LOOKUP_TABLE default
>
> Here is the second:
>
> # vtk DataFile Version 1.0
> Plastic blow molding of car bumper
> ASCII
>
> DATASET UNSTRUCTURED_GRID
> POINTS 687 float
>
> I am using a VTK on Windows.
>
> -Kyle
>
> Quoting Peter Schmitt <pschmitt at gmail.com>:
>
> > Can you post the header of your structured grid file?
> > What system are you running? (windows/*nix?)
> >
> > On 6/24/05, Kyle Johnson <krj at seas.upenn.edu> wrote:
> > > I am trying to use Python with VTK to read an image file. I have
> > InsightSnap
> > > downloaded and use it to convert my .img file to a .VTK file. When I try
> > to
> > > read it using vktStructuredGridReader, I get the following error and I
> > cannot
> > > seem to figure out why:
> > >
> > > ERROR: In \Documents and
> > > Settings\Administrator\Desktop\Job\Vtk\Io\vtkDataReader.cxx, line 383
> > > vtkStructuredGridReader (01DB4F88): Unable to open file:
> > > ./../../../VTKData/Data/MyData/A.vtk
> > >
> > > I also tried to run the example of officeTube.py or officeTubes.py and they
> > give
> > > me the same error. If any one can get these to work, I would appreciate
> > any help.
> > >
> > > Thanks,
> > > Kyle
> > > _______________________________________________
> > > This is the private VTK discussion list.
> > > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > > Follow this link to subscribe/unsubscribe:
> > > http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> >
>
>
>
--
Pete
More information about the vtkusers
mailing list