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