[vtkusers] About FilePattern
lee ricky
rickyhust at gmail.com
Wed Apr 12 20:54:53 EDT 2006
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/20060413/c954a8ce/attachment.htm>
More information about the vtkusers
mailing list