<div>Hello everyone</div>
<div>&nbsp;</div>
<div>I have two series of bmp file:</div>
<div>&nbsp;</div>
<div>yc1skull.bmp&nbsp;&nbsp; yc2skull.bmp&nbsp; &nbsp;yc3skull.bmp&nbsp;&nbsp; yc4skull.bmp&nbsp; ......&nbsp; yc100skull.bmp&nbsp; yc101skull.bmp&nbsp; yc102skull.bmp</div>
<div>mc001skull.bmp&nbsp; mc002skull.bmp&nbsp; mc003skull.bmp&nbsp; mc004skull.bmp&nbsp;&nbsp; ...........&nbsp;&nbsp; mc101skull.bmp&nbsp; mc102skull.bmp</div>
<div>&nbsp;</div>
<div>I use vtkBMPReader to read these files:</div>
<div>&nbsp;</div>
<div>vtkBMPReader *v16yc = vtkBMPReader::New();&nbsp;&nbsp; //read yc1skull.bmp .......<br>v16yc-&gt;SetFilePrefix (&quot;E:\\3DData\\yc\\yc&quot;);<br>v16yc-&gt;SetDataExtent(0,255,0,255,1,102);<br>v16yc-&gt;SetFilePattern (&quot;%s%d%s.bmp&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Is&nbsp;the file pattern&nbsp;right?
<br>v16yc-&gt;SetDataByteOrderToLittleEndian();<br>v16yc-&gt;SetDataSpacing (1.0, 1.0, 1.0);</div>
<div>&nbsp;</div>
<div>
<div>vtkBMPReader *v16mc = vtkBMPReader::New();&nbsp; //read mc1skull.bmp .......<br>v16mc-&gt;SetFilePrefix (&quot;E:\\3DData\\mc\\mc&quot;);<br>v16mc-&gt;SetDataExtent(0,255,0,255,1,102);<br>v16mc-&gt;SetFilePattern (&quot;%s%d%s.bmp&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //is&nbsp;the file pattern&nbsp;right?
<br>v16mc-&gt;SetDataByteOrderToLittleEndian();<br>v16mc-&gt;SetDataSpacing (1.0, 1.0, 1.0);</div></div>
<div>&nbsp;</div>
<div>I don't know whether the file pattern I set is right.</div>
<div>Could you help me?</div>
<div>&nbsp;</div>
<div>Thanks in advance!</div>
<div>&nbsp;</div>
<div>ricky</div>