<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style">I need to use the vtkVolume16Reader to read 
512x512x100 image repeatedly.&nbsp;The code&nbsp;is as</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">//v16 is&nbsp;instanced in 
constructor</FONT></DIV>
<DIV><FONT face="Bookman Old Style">&nbsp;vtkVolume16Reader *v16 = 
vtkVolume16Reader::New();</FONT><BR></DIV>
<DIV><FONT face="Bookman Old Style">//the below codes is called repeatedly when 
the image is need to be loaded&nbsp;</FONT></DIV>
<DIV><FONT face="Bookman Old Style">...</FONT></DIV>
<DIV><FONT face="Bookman Old Style">&nbsp;&nbsp;&nbsp; v16-&gt;SetDataDimensions 
(512,512);<BR>&nbsp;&nbsp;&nbsp; v16-&gt;SetImageRange 
(1,100);<BR>&nbsp;&nbsp;&nbsp; 
v16-&gt;SetDataByteOrderToLittleEndian();<BR>&nbsp;&nbsp;&nbsp; 
v16-&gt;SetFilePrefix ("C:\\MyVC\\temp\\raw1\\IM");<BR>&nbsp;&nbsp;&nbsp; 
v16-&gt;SetDataSpacing (0.775, 0.775, 1.0);<BR>&nbsp;&nbsp;&nbsp; 
v16-&gt;SetFilePattern("%s%d.raw");<BR>&nbsp;&nbsp;&nbsp; 
v16-&gt;Update();</FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">...</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">If I load the image data again, I do not 
know if the memroy for the first image data&nbsp;can be released.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Regards,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Yixun Liu</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV></BODY></HTML>