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