<div>Dear List:</div>
<div> </div>
<div>I have test the code</div>
<div>the first is right.(yc1skull.bmp yc2skull.bmp .. )</div>
<div>but the second is wrong.then How can I set the correct file pattern?<br><br> </div>
<div><span class="gmail_quote">2006/4/13, lee ricky <<a href="mailto:rickyhust@gmail.com">rickyhust@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr">
<div>Hello everyone</div>
<div> </div>
<div>I have two series of bmp file:</div>
<div> </div>
<div>yc1skull.bmp yc2skull.bmp yc3skull.bmp yc4skull.bmp ...... yc100skull.bmp yc101skull.bmp yc102skull.bmp</div>
<div>mc001skull.bmp mc002skull.bmp mc003skull.bmp mc004skull.bmp ........... mc101skull.bmp mc102skull.bmp</div>
<div> </div>
<div>I use vtkBMPReader to read these files:</div>
<div> </div>
<div>vtkBMPReader *v16yc = vtkBMPReader::New(); //read yc1skull.bmp .......<br>v16yc->SetFilePrefix ("E:\\3DData\\yc\\yc");<br>v16yc->SetDataExtent(0,255,0,255,1,102);<br>v16yc->SetFilePattern ("%s%d%s.bmp"); //Is the file pattern right?
<br>v16yc->SetDataByteOrderToLittleEndian();<br>v16yc->SetDataSpacing (1.0, 1.0, 1.0);</div>
<div> </div>
<div>
<div>vtkBMPReader *v16mc = vtkBMPReader::New(); //read mc1skull.bmp .......<br>v16mc->SetFilePrefix ("E:\\3DData\\mc\\mc");<br>v16mc->SetDataExtent(0,255,0,255,1,102);<br>v16mc->SetFilePattern ("%s%d%s.bmp"); //is the file pattern right?
<br>v16mc->SetDataByteOrderToLittleEndian();<br>v16mc->SetDataSpacing (1.0, 1.0, 1.0);</div></div>
<div> </div>
<div>I don't know whether the file pattern I set is right.</div>
<div>Could you help me?</div>
<div> </div>
<div>Thanks in advance!</div></div>
<div style="DIRECTION: ltr"><span class="sg">
<div> </div>
<div>ricky</div></span></div></blockquote></div><br>