[vtkusers] Re: About FilePattern
lee ricky
rickyhust at gmail.com
Sun Apr 16 09:14:41 EDT 2006
Dear List:
I have test the code
the first is right.(yc1skull.bmp yc2skull.bmp .. )
but the second is wrong.then How can I set the correct file pattern?
2006/4/13, lee ricky <rickyhust at gmail.com>:
>
> Hello everyone
>
> I have two series of bmp file:
>
> yc1skull.bmp yc2skull.bmp yc3skull.bmp yc4skull.bmp ......
> yc100skull.bmp yc101skull.bmp yc102skull.bmp
> mc001skull.bmp mc002skull.bmp mc003skull.bmp mc004skull.bmp
> ........... mc101skull.bmp mc102skull.bmp
>
> I use vtkBMPReader to read these files:
>
> vtkBMPReader *v16yc = vtkBMPReader::New(); //read yc1skull.bmp .......
> v16yc->SetFilePrefix ("E:\\3DData\\yc\\yc");
> v16yc->SetDataExtent(0,255,0,255,1,102);
> v16yc->SetFilePattern ("%s%d%s.bmp"); //Is the file
> pattern right?
> v16yc->SetDataByteOrderToLittleEndian();
> v16yc->SetDataSpacing (1.0, 1.0, 1.0);
>
> vtkBMPReader *v16mc = vtkBMPReader::New(); //read mc1skull.bmp .......
> v16mc->SetFilePrefix ("E:\\3DData\\mc\\mc");
> v16mc->SetDataExtent(0,255,0,255,1,102);
> v16mc->SetFilePattern ("%s%d%s.bmp"); //is the file
> pattern right?
> v16mc->SetDataByteOrderToLittleEndian();
> v16mc->SetDataSpacing (1.0, 1.0, 1.0);
>
> I don't know whether the file pattern I set is right.
> Could you help me?
>
> Thanks in advance!
>
> ricky
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060416/2b77e1ca/attachment.htm>
More information about the vtkusers
mailing list