<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">On Thu, Apr 1, 2010 at 3:13 PM, 朱文武 <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;">
<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 class="h5"> <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>_______________________________________________<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>