[vtkusers] Can't get the vtkBMPReader to work
Nacho Larrabide
nacho at lncc.br
Tue Feb 1 15:48:27 EST 2005
Hi VtkUsers,
I'm using the cvs repository version of vtk, and I'm trying to
reafd a BMP-file series. My code is something like this:
vtkBMPReaber imr=vtkBMPReader::New();
imr->SetNumberOfScalarComponents(1);
imr->SetDataExtent(0,2,0,2,0,2);
imr->SetFilePattern("c:\data\%s%d.bmp");
imr->SetFilePrefix("test");
imr->SetFileNameSliceOffset(1);
imr->SetFileNameSliceSpacing(1);
and in my hd i have:
c:\data\test1.bmp
c:\data\test2.bmp
c:\data\test3.bmp
all of them 3x3 8bpp images. In the resulting Structured points
only the first image is properly readen an in the the rest of the
3d image (the other 2 planes for this case) I get trash. Any
ideas?, Am I missing something?, Am I miss using the vtkBMPReader?
Please help...:D
Regards,
Nacho
-----------------------------------------------------
Nacho Larrabide
Rua Getulio Vargas 333 - Quitandinha - CEP: 25651-070
Petropolis - RJ - Brasil
Tel: +54 24 2233-6137 - Fax: +54 24 2233-6167
mailto:nacho at lncc.br
-----------------------------------------------------
More information about the vtkusers
mailing list