<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><FONT color=#0000ff size=3>hello , vtk users and developers , </FONT><BR>
<FONT color=#0000ff size=3> </FONT><BR>
<FONT color=#0000ff size=3> I find a vtk <STRONG><FONT color=#ff0000>BUG</FONT></STRONG> now . </FONT><FONT color=#0000ff size=3>and the bug is just as follows :</FONT><BR>
<FONT color=#0000ff size=3> I use VC++ and VTK to show a dcm image . and I build a project , its base class is CFormView . and </FONT><BR>
<FONT color=#0000ff size=3>then I use vtkDICOMImageReader and vtkImageViewer2 to show the image in an Picture of MFC . but here </FONT><BR>
<FONT color=#0000ff size=3>is the <STRONG><FONT color=#ff0000>bug</FONT></STRONG> :</FONT><BR>
<FONT color=#0000ff size=3> all of my code are just : </FONT><BR>
<FONT color=#0000ff size=3>vtkDICOMImageReader * reader = vtkDICOMImageReader::New();</FONT><BR>
<FONT color=#0000ff size=3> reader->SetDataByteOrderToLittleEndian();</FONT><BR>
<FONT color=#0000ff size=3> reader->SetFileName("D:/Data");</FONT><BR>
<FONT color=#0000ff size=3> reader->Update();</FONT><BR>
<FONT color=#0000ff size=3>vtkImageViewer2 * viewer = vtkImageViewer::New();</FONT><BR>
<FONT color=#0000ff size=3> viewer->SetInput(reader->GetOutput());</FONT><BR>
<FONT color=#0000ff size=3> viewer->SetSlice(0);</FONT><BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#0000ff size=3> and then I run it , I find the dcm image appears ! however , the dcm image is not in the Picture </FONT><BR>
<FONT color=#0000ff size=3>of MFC , but in a vtk render window . how surprising ! because I do not use the function Render ! </FONT><FONT color=#0000ff size=3>at </FONT><BR>
<FONT color=#0000ff size=3>the same time , if I use vtkImageViewer , it will be OK . </FONT><BR>
<FONT color=#0000ff size=3> So , I want to ask : is this a vtk <STRONG><FONT color=#ff0000>BUG</FONT></STRONG> ? or vtkImageViewer2 can not show the dcm image ? but from </FONT><BR>
<FONT color=#0000ff size=3>the description of this class , we can see : vtkImageViewer2 is a convenience class for displaying a </FONT><BR>
<FONT color=#0000ff size=3>2D image . or this class is not perfect and we can not use this class now ?</FONT><BR>
<FONT color=#0000ff size=3> if this is not a bug , why does this happen ? and what is wrong with my code ? how can I use this </FONT><BR>
<FONT color=#0000ff size=3>class correctly ?</FONT><BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#0000ff size=3> thank you for any help !</FONT><BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#0000ff size=3> Mark</FONT><BR>
<BR>
<FONT color=#0000ff size=3></FONT> <BR>
<BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#0000ff size=3></FONT> <BR><br /><hr />使用新一代 Hotmail,更强大、更安全、更多存储空间! <a href='http://mail.live.com' target='_new'>立刻体验!</a></body>
</html>