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>Thï½ï½Žï½‹ï½“,<br>Wenwu<br><br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 10:36 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></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 class="h5"><br><br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 8:29 AM, Jothybasu K Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>></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"><<a href="mailto:cool.wenwu@gmail.com" target="_blank">cool.wenwu@gmail.com</a>></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'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'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->m_read->Update();//read the bmp image<br>
   this->skinExtractor->SetInputConnection(m_read->GetOutputPort());<br>   this->skinExtractor->SetValue(0,threshshold);<br>   this->skinNormals->SetInputConnection(skinExtractor->GetOutputPort());/<br>
   this->skinNormals->SetFeatureAngle(60.0);//<br>   this->triangle->SetInputConnection(skinNormals->GetOutputPort());//<br>   this->deci->SetInputConnection(triangle->GetOutputPort());//<br>   this->deci->SetTargetReduction(predigestion);//<br>
   this->deci->PreserveTopologyOn();//<br>   this->smoother->SetInputConnection(deci->GetOutputPort());//<br>   this->smoother->SetNumberOfIterations(smoothness);//<br>   this->skinMapper->SetInputConnection(smoother->GetOutputPort());//<br>
   this->skinMapper->ScalarVisibilityOff();//<br>   this->skinMapper->SetColorModeToMapScalars();<br>   this->skinMapper->SetScalarRange(-1,1);<br> <br>   <br>   // Link the actor<br>   <br>   this->skin->SetMapper(this->skinMapper);<br>
   this->skin->GetProperty()->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"><<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>></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"><<a href="mailto:cool.wenwu@gmail.com" target="_blank">cool.wenwu@gmail.com</a>></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'm waiting! <br><div><div></div><div></div></div></blockquote></div><div><br></div></div>I didn'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>-- <br>ç¥<br>工作愉快,身体å¥åº·ï¼<br>