<!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. The code is as</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">//v16 is instanced in
constructor</FONT></DIV>
<DIV><FONT face="Bookman Old Style"> 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 </FONT></DIV>
<DIV><FONT face="Bookman Old Style">...</FONT></DIV>
<DIV><FONT face="Bookman Old Style"> v16->SetDataDimensions
(512,512);<BR> v16->SetImageRange
(1,100);<BR>
v16->SetDataByteOrderToLittleEndian();<BR>
v16->SetFilePrefix ("C:\\MyVC\\temp\\raw1\\IM");<BR>
v16->SetDataSpacing (0.775, 0.775, 1.0);<BR>
v16->SetFilePattern("%s%d.raw");<BR>
v16->Update();</FONT> </DIV>
<DIV><FONT face="Bookman Old Style">...</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </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 can be released.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Regards,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Yixun Liu</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV></BODY></HTML>