<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"><<a href="mailto:cool.wenwu@gmail.com">cool.wenwu@gmail.com</a>></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'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'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>_______________________________________________<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>