<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 24, 2016 at 4:35 AM, Ang <span dir="ltr"><<a href="mailto:ysa0829@gmail.com" target="_blank">ysa0829@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I have another question about use  vtkImageThreshold and then do<br>
vtkMarchingCubes.<br>
<br>
I separate image to binary data using vtkImageThreshold ,then do<br>
vtkMarchingCubes to generate PolyData. I will see the polydata is serrated .</blockquote><div><br></div><div>I will answer your question with my own questions.  To answer, you will have to understand how the marching cubes algorithm works. If you don't yet know how it works, please read the wikipedia page on "Marching Cubes or (even better) the original paper.</div><div><br></div><div>Most importantly, consider this part of the marching cubes algorithm:</div><div><br></div><div>"Finally each vertex of the generated polygons is placed on the appropriate position along the cube's edge by linearly interpolating the two scalar values that are connected by that edge."</div><div><br></div><div>My questions for you are as follows: if marching cubes is applied to a binary image, what is the result?  What is the best isovalue to use?  Can you suggest a way to process the image that will produce a smoother result?</div><div><br></div><div> - David  <br></div></div><br></div></div>