<!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> 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->SetDirectoryName("E:/cochlea/DICOM/PA1/ST1/se7");<BR> //DicomReader->SetDataSpacing(0.412109,0.412109,1.25);<BR> DicomReader->SetDataExtent(0,511,0,511,0,4);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
size=2> vtkImageAccumulate*accumulate=vtkImageAccumulate::New();<BR> accumulate->SetInput(DicomReader->GetOutput());<BR> accumulate->SetComponentExtent(0,654,0,0,0,0);<BR> accumulate->SetComponentSpacing(100,0,0);<BR> //accumulate->SetComponentOrigin(0,0,0);<BR> accumulate->Update();<BR> viewer->SetInput(accumulate->GetOutput());<BR>// viewer->SetColorWindow(6);<BR> //viewer->SetColorLevel(3);<BR> viewer->Render();<BR> Sleep(5000);<BR> accumulate->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>