[vtkusers] Bug in vtkBMPReader ?

Jeremy Winston winston at cat.rpi.edu
Sun May 25 15:03:22 EDT 2003


Steve Boyd wrote:
> Hi,
> 
> It seems to me that the method SetFileNameSliceOffset() is not working
> properly.  As an example, I want to read in the following series of
> bmps:
>       Al300.bmp Al301.bmp ... Al310.bmp
> I set extent to [1,256,1,256,300,310] and then run the following code
                    ^
                    0,255,0,255  might work better.

> snippet:
>   vtkBMPReader *bmps = vtkBMPReader::New();
>     bmps->SetFilePrefix(filename);
>     bmps->SetFileNameSliceOffset(300);
>     bmps->SetFileNameSliceSpacing(1);
>     bmps->SetFilePattern("%s%.3d.bmp");
                             ^
                            "%s%03d.bmp"  might work better.

-Jeremy





More information about the vtkusers mailing list