<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>Hi , vtkusers ,</FONT><BR>
<FONT color=#0000ff size=3> I have been testing some examples of cells during these days . and I find an interesting class : </FONT><BR>
<FONT color=#0000ff size=3>vtkImageMandelbrotSource , because its output can be used by volume rendering , although the volume </FONT><BR>
<FONT color=#0000ff size=3>rendering is unstructured grid volume rendering . </FONT><BR>
<FONT color=#0000ff size=3> and I find it has an input method : SetInputConnection(vtkDataObject *) , so I think it may be OK </FONT><BR>
<FONT color=#0000ff size=3>if I take the output of class vtkVolume16Reader as its input , but , luckily , I get an error : </FONT><BR>
<FONT color=#0000ff size=3>Attempt to connect input port index 0 for an algorithm with 0 input ports . but in other examples of </FONT><BR>
<FONT color=#0000ff size=3>volume rendering , there is not any error like this , and all of them work well . so I don't think </FONT><BR>
<FONT color=#0000ff size=3>there is 0 input ports .</FONT><BR>
<FONT color=#0000ff size=3> the codes is just as follows :</FONT><BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#000000 size=2>vtkVolume16Reader *reader = vtkVolume16Reader::New();//**** the v16 codes is no problem , I have test it many times .<BR></FONT><FONT color=#000000 size=2> reader->SetDataDimensions(64,64);<BR> reader->SetImageRange(1,93);<BR> reader->SetDataByteOrderToLittleEndian();<BR> reader->SetFilePrefix("../headsq/quarter");<BR> reader->SetDataSpacing(3.2, 3.2, 1.5); </FONT><BR>
<FONT color=#000000 size=2>vtkImageMandelbrotSource *input = vtkImageMandelbrotSource::New();<BR> input->SetInputConnection(reader->GetOutputPort()); </FONT><BR>
<FONT color=#0000ff size=3></FONT> <BR>
<FONT color=#0000ff size=3>so there are my problems : </FONT><BR>
<FONT color=#0000ff size=3> 1、of course , vtkImageMandelbrotSource can create images by itself , is it real that </FONT><BR>
<FONT color=#0000ff size=3>vtkImageMandelbrotSource can not take other images as input ports ? </FONT><BR>
<FONT color=#0000ff size=3> 2、if it is so , all the unstructured grid volume rendering methods can not take random images </FONT><BR>
<FONT color=#0000ff size=3>as their input ports ? if it is not , what should I do before I send the images (like .dcm images) to </FONT><BR>
<FONT color=#0000ff size=3>vtkImageMandelbrotSource ? </FONT><BR>
<FONT color=#0000ff size=3> and I have tried vtkUnstructuredGridAlgorithm , it can transform the images to unstructured grid , </FONT><BR>
<FONT color=#0000ff size=3>just as the unstructured grid volume rendering requires , but it doesn't work .</FONT><BR>
<FONT color=#0000ff size=3> or in other words , these methods , like vtkUnstructuredGridVolumeZSweepMapper , can not be used </FONT><BR>
<FONT color=#0000ff size=3>by the medical visualization system , so which field can they be used ?</FONT><BR>
<BR>
<FONT color=#0000ff size=3> thank you with great regards !</FONT><BR>
<FONT color=#0000ff size=3> </FONT><BR>
<FONT color=#0000ff size=3> Mark</FONT> <BR>
<BR><br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://messenger.live.cn/' target='_new'>立即体验!</a></body>
</html>