<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>thank you , Sylvain ,</FONT><BR>
<FONT color=#0000ff size=3>&nbsp;</FONT><BR>
<FONT color=#0000ff size=3>&nbsp;&nbsp;&nbsp; I have send it to the maillist&nbsp;. </FONT><BR>
<FONT color=#0000ff size=3>&nbsp;&nbsp;&nbsp;&nbsp;I just see that vtkImageMandelbrotSource&nbsp;has an input port method&nbsp;: SetInputConnection() , and it </FONT><BR>
<FONT color=#0000ff size=3>can </FONT><FONT color=#0000ff size=3>take vtkImageData as input ports , so I&nbsp;think&nbsp;it will be&nbsp;OK&nbsp;if I&nbsp;compile it . however ,&nbsp;I get many </FONT><BR>
<FONT color=#0000ff size=3>errors&nbsp;from it . maybe I have to retest it now . </FONT><BR>
<FONT color=#0000ff size=3></FONT>&nbsp;<BR>
<FONT color=#0000ff size=3>&nbsp;&nbsp;&nbsp; thank you for your help again ,&nbsp;sylvain .</FONT><BR>
<FONT color=#0000ff size=3>&nbsp;&nbsp;&nbsp; </FONT><BR>
<FONT color=#0000ff size=3>&nbsp;&nbsp;&nbsp; Mark&nbsp;&nbsp;<BR></FONT><BR><BR><BR><BR>

<HR id=stopSpelling>
<BR>
&gt; Date: Wed, 19 Sep 2007 09:27:12 -0400<BR>&gt; From: sylvain.jaume@kitware.com<BR>&gt; To: zhaojunxp@hotmail.com; vtkusers@vtk.org<BR>&gt; Subject: Re: What Is Wrong With My VTK Pipeline ?<BR>&gt; <BR>&gt; Hi Mark,<BR>&gt; <BR>&gt; (Please keep your postings to vtkusers mailing list.)<BR>&gt; <BR>&gt; vtkImageMandelbrotSource and vtkVolume16Reader are both sources, they <BR>&gt; don't accept an input. They both produce a vtkImageData, so either use <BR>&gt; one or the other for testing your application.<BR>&gt; <BR>&gt; You can convert a vtkImageData to a vtkUnstructuredGrid using <BR>&gt; vtkThreshold. For volume rendering a vtkUnstructuredGrid, have a look at <BR>&gt; the vtkUnstructuredGridVolumeRayCastMapper. You'll find an example in <BR>&gt; VTK/Examples/VolumeRendering/Tcl/IntermixedUnstructuredGrid.tcl<BR>&gt; <BR>&gt; Sincerely,<BR>&gt; Sylvain<BR>&gt; <BR>&gt; JohnMark wrote:<BR>&gt; &gt; Hi , Sylvain ,<BR>&gt; &gt; thank you for your help within these days . and this is one problem <BR>&gt; &gt; that my friend ask me , but I<BR>&gt; &gt; still don't know why it is , even though I have read the vtk user guide <BR>&gt; &gt; and so on :<BR>&gt; &gt; I have been testing some examples of cells during these days . and I <BR>&gt; &gt; find an interesting class :<BR>&gt; &gt; vtkImageMandelbrotSource , because its output can be used by volume <BR>&gt; &gt; rendering , although the volume<BR>&gt; &gt; rendering is unstructured grid volume rendering .<BR>&gt; &gt; and I find it has an input method : SetInputConnection(vtkDataObject <BR>&gt; &gt; *) , so I think it may be OK<BR>&gt; &gt; if I take the output of class vtkVolume16Reader as its input , but , <BR>&gt; &gt; luckily , I get an error :<BR>&gt; &gt; Attempt to connect input port index 0 for an algorithm with 0 input <BR>&gt; &gt; ports . but in other examples of<BR>&gt; &gt; volume rendering , there is not any error like this , and all of them <BR>&gt; &gt; work well . so I don't think<BR>&gt; &gt; there is 0 input ports .<BR>&gt; &gt; the codes is just as follows :<BR>&gt; &gt; <BR>&gt; &gt; vtkVolume16Reader *reader = vtkVolume16Reader::New();//**** the v16 <BR>&gt; &gt; codes is no problem , I have test it many times .<BR>&gt; &gt; reader-&gt;SetDataDimensions(64,64);<BR>&gt; &gt; reader-&gt;SetImageRange(1,93);<BR>&gt; &gt; reader-&gt;SetDataByteOrderToLittleEndian();<BR>&gt; &gt; reader-&gt;SetFilePrefix("../headsq/quarter");<BR>&gt; &gt; reader-&gt;SetDataSpacing(3.2, 3.2, 1.5);<BR>&gt; &gt; vtkImageMandelbrotSource *input = vtkImageMandelbrotSource::New();<BR>&gt; &gt; input-&gt;SetInputConnection(reader-&gt;GetOutputPort());<BR>&gt; &gt; <BR>&gt; &gt; so there are the problems :<BR>&gt; &gt; 1、of course , vtkImageMandelbrotSource can create images by itself <BR>&gt; &gt; , is it real that<BR>&gt; &gt; vtkImageMandelbrotSource can not take other images as input ports ? <BR>&gt; &gt; 2、if it is so , all the unstructured grid volume rendering methods <BR>&gt; &gt; can not take random images<BR>&gt; &gt; as their input ports ? if it is not , what should I do before I send <BR>&gt; &gt; the images (like .dcm images) to<BR>&gt; &gt; vtkImageMandelbrotSource ? <BR>&gt; &gt; and I have tried vtkUnstructuredGridAlgorithm , it can transform the <BR>&gt; &gt; images to unstructured grid ,<BR>&gt; &gt; just as the unstructured grid volume rendering requires , but it doesn't <BR>&gt; &gt; work .<BR>&gt; &gt; or in other words , these methods , like <BR>&gt; &gt; vtkUnstructuredGridVolumeZSweepMapper , can not be used<BR>&gt; &gt; by the medical visualization system , so which field can they be used ?<BR>&gt; &gt; <BR>&gt; &gt; thank you with great regards !<BR>&gt; &gt; <BR>&gt; &gt; Mark <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt; 使用新一代 Hotmail,更强大、更安全、更多存储空间! 立刻体验! <BR>&gt; &gt; &lt;http://www.hotmail.com&gt;<BR><BR><br /><hr />用 Windows Live Spaces 展示个性自我,与好友分享生活!  <a href='http://spaces.live.com/?page=HP' target='_new'>了解更多信息!</a></body>
</html>