<!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.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hello every one:</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;now I want to use 
vtkImageAccumulate to display the histogram of images ,but the result is 
wrong.The program as follows,</FONT></DIV>
<DIV><FONT 
size=2>DicomReader-&gt;SetDirectoryName("E:/cochlea/DICOM/PA1/ST1/se7");<BR>&nbsp;//DicomReader-&gt;SetDataSpacing(0.412109,0.412109,1.25);<BR>&nbsp;DicomReader-&gt;SetDataExtent(0,511,0,511,0,4);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT 
size=2>&nbsp;vtkImageAccumulate*accumulate=vtkImageAccumulate::New();<BR>&nbsp;accumulate-&gt;SetInput(DicomReader-&gt;GetOutput());<BR>&nbsp;accumulate-&gt;SetComponentExtent(0,654,0,0,0,0);<BR>&nbsp;accumulate-&gt;SetComponentSpacing(100,0,0);<BR>&nbsp;//accumulate-&gt;SetComponentOrigin(0,0,0);<BR>&nbsp;accumulate-&gt;Update();<BR>&nbsp;viewer-&gt;SetInput(accumulate-&gt;GetOutput());<BR>//&nbsp;viewer-&gt;SetColorWindow(6);<BR>&nbsp;//viewer-&gt;SetColorLevel(3);<BR>&nbsp;viewer-&gt;Render();<BR>&nbsp;Sleep(5000);<BR>&nbsp;accumulate-&gt;Delete();<BR></FONT></DIV>
<DIV><FONT size=2>In the file path 
of"E:/cochlea/DICOM/PA1/ST1/se7",</FONT></DIV>
<DIV><FONT size=2>there are five images of 512*512,each pixel is 16bits.The 
image type is DICOM.</FONT></DIV>
<DIV><FONT size=2>Is there something wrong about the parameters in the 
program?</FONT></DIV>
<DIV><FONT size=2>The result is only a black rectangle area.Any help will be 
appreciated.Thanks a lot.</DIV></FONT></BODY></HTML>