[vtkusers] BMP volume reader

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Sep 28 00:38:57 EDT 2001


hi,

>>>>> "AJM" == anast jm <anast.jm at pg.com> writes:

    AJM> vtkBMPReader reader reader SetDataExtent 1 1024 1 1024 1 200
    AJM> reader SetDataSpacing 0.05 0.05 0.2 reader SetDataVOI 50 960
    AJM> 50 960 2 199 reader SetFileName "dik"

    AJM> this gives an error can read file "dik" If I give it filename
    AJM> "dik.1" then it reads 200 copies of dik.1 to form the
    AJM> volume. What is the proper syntax to get it to read the other
    AJM> 199 slices???

I think you should try 

reader SetFilePrefix "dik"

that should work.  If your file format is not of the form dik.%d you
could also use SetFilePattern method along with the SetFilePrefix.
The FilePattern defaults to "%s.%d" which should work in your case.

prabhu



More information about the vtkusers mailing list