Thanks Christian,<br><br>I will check the differences carefully to find out what I might have mistaken.<br> <br>By the way, do you have any idea of ways to rendering single voxels. My case is tha one of the label only corresponds to a few separate voxels, which cannot even form a surface, while some other labels corresponds to a lot of connected voxels. It seems for the latter ones, surface should be used for rendering purpose. But for the former one, surface may not be a good choice. I am trying to find ways to combine them together. Any suggestions?<br>
<br>Best,<br>Yanqiao<br><br><br><br><div class="gmail_quote">On Thu, Jul 28, 2011 at 1:37 PM, Christian Lackas [via VTK] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4648083&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
        * yanqiao zhu <<a href="http://user/SendEmail.jtp?type=node&node=4643676&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> [110727 01:28]:
<br><div class="im"><br>Hi Yanqiao,
<br><br>I believe the only part missing is where I actually build the LUT with
<br>useful colors:
<br><br> lut->SetTableValue(0,1.0,0.0,0.0);
<br> [...]
<br></div><div class="im"> lut->SetTableRange(0.0, 7.0);
<br></div><div class="im"> lut->Build();
<br><br>You can find the complete example here (the one I used to produce the
<br>image in the posting):
<br><br> <a href="http://www.invicro.com/vtk/ROIRendering2.zip" rel="nofollow" link="external" target="_blank">http://www.invicro.com/vtk/ROIRendering2.zip</a><br><br>Hope this helps you.
<br> Christian
<br><br>--
<br>Dr. Christian Lackas, Managing Partner
<br>inviCRO, LLC -- In Imaging Yours
<br></div>P: <a href="tel:%2B1%20617%20933%208733" value="+16179338733" target="_blank">+1 617 933 8733</a>, F: <a href="tel:%2B49%202203%209034722" value="+4922039034722" target="_blank">+49 2203 9034722</a>, E: <a href="http://user/SendEmail.jtp?type=node&node=4643676&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><div class="im"><a href="http://www.invicro.com/" rel="nofollow" link="external" target="_blank">http://www.invicro.com/</a> <a href="http://www.spect-ct.com/" rel="nofollow" link="external" target="_blank">http://www.spect-ct.com/</a></div>
<div><br><div><div></div><div class="h5">> Hi Christian,
<div class='shrinkable-quote'><br>>
<br>> I downloaded the code and data you provided in the previous post and changed
<br>> the code as you told in this post by adding lut->SetTableRange(0.0, 7.0);
<br>> and changed mapper->SetScalarModeToUsePointData(); to
<br>> mapper->SetScalarModeToUseCellData(); But what I get after running the
<br>> program is shown in the image
<br>> <a href="http://vtk.1045678.n5.nabble.com/file/n4636845/result.png" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/file/n4636845/result.png</a> , which is far
<br>> from your result. So I am wondering maybe something is wrong. Could please
<br>> check it. The source code is also attached.
<br>>
<br>> Thanks very much!
<br>> Best,
<br>> Yanqiao Zhu
<br>>
<br>> <a href="http://vtk.1045678.n5.nabble.com/file/n4636845/ROIRendering.cxx" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/file/n4636845/ROIRendering.cxx</a><br>> ROIRendering.cxx
<br>>
<br>> --
<br>> View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4636845.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4636845.html</a></div>
> Sent from the VTK - Users mailing list archive at Nabble.com.
<br>> _______________________________________________
<br>> Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>>
<br>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>>
<br>> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a></div></div></div>_______________________________________________
<br><div class="im">Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4643676.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4643676.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from Surface rendering of multiple objects, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></blockquote></div><br>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4648083.html">Re: Surface rendering of multiple objects</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>