<!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.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">The reason maybe that you use a wrong data
type.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Call reader->Update() then use
reader->GetOutput()->GetScalarType() to get the correct data type. Then,
assuming short*,</FONT></DIV>
<DIV><FONT face="Bookman Old Style">short *f =
reader->GetOutput()->GetScalarPointer();</FONT></DIV>
<DIV><FONT face="Bookman Old Style">Then, in the loop use f[j] +=100 instead of
f[j] += 10 you can see a notable change.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">for(int k=0;k<360;k++){<BR><BR>
renWin->Render();<BR><BR> ren1->GetActiveCamera()->Azimuth( 1
);<BR> for(int
j=0;j<dims[0]*dims[1]*dims[2];j++){<BR>
f[j]+=100;<BR>
}<BR><BR><BR><BR>}<BR><BR>Cheers,<BR><BR>Yixun
Liu<BR></DIV></FONT></BODY></HTML>