<div dir="ltr">As David Gobbi said, you can use vtkConnectivityFilter to extract the largest portion of your data.<br><br><a href="http://www.vtk.org/doc/release/4.0/html/classvtkConnectivityFilter.html#_details">http://www.vtk.org/doc/release/4.0/html/classvtkConnectivityFilter.html#_details</a><br>
<br>Jothy<br><br><div class="gmail_quote">On Fri, Apr 2, 2010 at 5:05 AM, 朱文武 <span dir="ltr">&lt;<a href="mailto:cool.wenwu@gmail.com">cool.wenwu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
David, <br>    thanks firstly!  I began to know something about the use of the vtkConnectivityFilter. However, the current problem is that i can not find any line or other pot in the original image in that place. ( you can see the image in the email which i reply to jothy. ), I do not know how the plate occurred !  Could you provide more details?<br>


<br>Thanks,<br>Wenwu<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 10:36 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

The vtkConnectivityFilter can remove unwanted geometry like that plate.<br><font color="#888888"><br>   David</font><div><div></div><div><br><br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 8:29 AM, Jothybasu K Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">What I think is that the plate/thin slab appearing should be due to having similar scalar value as the brain. Verify your dicom images using a dicom viewer first and ensure that no plate are there in the original image.In most of the medical images there appears patient rest uesd while scanning.<br>





<br>Jothy<br><br><div class="gmail_quote"><div><div></div><div>On Thu, Apr 1, 2010 at 3:13 PM, 朱文武 <span dir="ltr">&lt;<a href="mailto:cool.wenwu@gmail.com" target="_blank">cool.wenwu@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
<br><div class="gmail_quote">Dear all and David,<br>     Thanks!   Firstly, I like to say sorry to david, it&#39;s my careless and mistake !   Now, i present my problem again ! thanks for all any help ! <br><div><div></div>





<div> <br>i also do not know why the image was disappeared.   I don&#39;t know whether the problem is related to the code. Because the same code can applied in other images(dataset), and the problem did not occurred. The related code was presented:<br>








<br>   m_read = new vtkBMPReader();<br><div>   skinExtractor = vtkMarchingCubes::New();//<div>   skinNormals = vtkPolyDataNormals::New();//<br>    triangle=vtkTriangleFilter::New();//<br>
    deci=vtkDecimatePro::New();/<br>    smoother=vtkSmoothPolyDataFilter::New();//<br>    skinMapper = vtkPolyDataMapper::New();//<br>    skin = vtkActor::New();<br></div><br>    this-&gt;m_read-&gt;Update();//read the bmp image<br>








    this-&gt;skinExtractor-&gt;SetInputConnection(m_read-&gt;GetOutputPort());<br>    this-&gt;skinExtractor-&gt;SetValue(0,threshshold);<br>    this-&gt;skinNormals-&gt;SetInputConnection(skinExtractor-&gt;GetOutputPort());/<br>








    this-&gt;skinNormals-&gt;SetFeatureAngle(60.0);//<br>    this-&gt;triangle-&gt;SetInputConnection(skinNormals-&gt;GetOutputPort());//<br>    this-&gt;deci-&gt;SetInputConnection(triangle-&gt;GetOutputPort());//<br>    this-&gt;deci-&gt;SetTargetReduction(predigestion);//<br>








    this-&gt;deci-&gt;PreserveTopologyOn();//<br>    this-&gt;smoother-&gt;SetInputConnection(deci-&gt;GetOutputPort());//<br>    this-&gt;smoother-&gt;SetNumberOfIterations(smoothness);//<br>    this-&gt;skinMapper-&gt;SetInputConnection(smoother-&gt;GetOutputPort());//<br>








    this-&gt;skinMapper-&gt;ScalarVisibilityOff();//<br>    this-&gt;skinMapper-&gt;SetColorModeToMapScalars();<br>    this-&gt;skinMapper-&gt;SetScalarRange(-1,1);<br> <br>    <br>    // Link the actor<br>    <br>    this-&gt;skin-&gt;SetMapper(this-&gt;skinMapper);<br>








    this-&gt;skin-&gt;GetProperty()-&gt;SetColor(0.94,0.83,0.45);</div><br><br>The image of the result:<br><br><img title="5.bmp" alt="5.bmp" src="cid:ii_127b714fc77cd415"><br><br></div></div>Thanks,<br>WenWu<br><div><div>





</div><div>

<br><br><div class="gmail_quote">On Wed, Mar 31, 2010 at 9:33 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="gmail_quote">On Tue, Mar 30, 2010 at 9:08 PM, 朱文武 <span dir="ltr">&lt;<a href="mailto:cool.wenwu@gmail.com" target="_blank">cool.wenwu@gmail.com</a>&gt;</span> wrote:<br>








<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Why no people help me ? Is this question too easy? <br>I&#39;m waiting! <br><div><div></div><div></div></div></blockquote></div><div><br></div></div>I didn&#39;t see an attached image that you said you sent. Also, please post the smallest compilable code that demonstrates your problem.<br>









<div><br clear="all">Thanks,<br><font color="#888888"><br>David</font></div>
</blockquote></div><br><br clear="all"><br><br>
</div></div></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>祝<br>工作愉快,身体健康!<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>