[vtkusers] staking a seires of bmp files
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Apr 6 08:22:17 EDT 2004
megha agarwal wrote:
> dear frens
> > as directed by you, i have tried reading a series of bmp files, but i am
> > unable to do so.
> > here is the code that i have used
> >
> > # For 512 x 512 images foo1 to foo100
> >
> > vtkBMPReader* bmp_d = vtkBMPReader::New();
> > bmp_d->SetFilePrefix ("c:/foo"); // base file prefix for a series
> > bmp_d->SetFilePattern ("%s%d.bmp");
Do you run your example in console mode ? The reader should complain and
give a reason why. I suspect because you did not specify the directory
separation:
bmp_d->SetFilePrefix ("c:/foo/");
^
HTH
Mathieu
More information about the vtkusers
mailing list