<div dir="ltr">Why don't you independently set the values required like setValue(0,50),setValue(1,60).<br><br>Jothy<br><br><div class="gmail_quote">2010/4/1 Andrej Gluhov <span dir="ltr"><<a href="mailto:realandron@gmail.com">realandron@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><span><span title="ñ ÉÓÐÏÌØÚÕÀ vtkContourFilter ÎÁ DICOM-Image.">I use vtkContourFilter on DICOM-Image. </span><span title="ðÒÉ ÜÔÏÍ ÆÉÌØÔÒ ÇÅÎÅÒÉÒÕÅÔ ÎÅÓËÏÌØËÏ isolines.">The filter generates several isolines. </span><span title="ëÁË ÉÚ×ÌÅÞØ points and ÌÉÎÉÉ ÄÌÑ ËÁÖÄÏÊ isolines ÉÌÉ ÜÔÏ ÎÅ×ÏÚÍÏÖÎÏ?">How to extract points and lines for each isolines or is it impossible?</span></span> <span><span style="background-color: rgb(255, 255, 255);" title="ñ ÈÏÞÕ ÕÄÁÌÉÔØ ÎÅËÏÔÏÒÙÅ isolines, ÎÏ ÎÅ ÚÎÁÀ ËÁË.">I want to remove some isolines, but do not know how.</span></span><br>
<br>šššššššššš vtkDICOMImageReader DicomReader = new vtkDICOMImageReader();<br>ššššššššššš DicomReader.SetFileName(m_strFilePath);<br>ššššššššššš DicomReader.Update();<br>ššššššššššš <br>ššššššššššš vtkContourFilter m_iso = new vtkContourFilter();<br>
ššššššššššš m_iso.SetInputConnection(DicomReader.GetOutputPort());<br>ššššššššššš m_iso.SetValue(0, (double)numcontourValue.Value);<br>ššššššššššš m_iso.Update();//generate several isolines,<span><span style="background-color: rgb(255, 255, 255);" title="ÎÏ ÎÅËÏÔÏÒÙÅ ÎÕÖÎÏ ÕÄÁÌÉÔØ">but some need to remove</span></span><br>
<br>ššššššššššš vtkPolyData PD = m_iso.GetOutput();<br>ššššššššššš int NumberOfPoints = PD.GetNumberOfPoints();<br><br>ššššššššššš using (FileStream fs = new FileStream("Points.txt", FileMode.Create))<br>ššššššššššš {<br>
ššššššššššššššš using (StreamWriter sw = new StreamWriter(fs))<br>ššššššššššššššš {<br>ššššššššššššššššššš for (int i = 0; i < NumberOfPoints; i++)//points for all isolines<br>ššššššššššššššššššš {<br>ššššššššššššššššššššššššššš double[] xyz = PD.GetPoint(i);<br>
ššššššššššššššššššššššššššš sw.Write(xyz[0].ToString() + " " + xyz[1].ToString() + " " + xyz[2].ToString() + "\r\n");<br>ššššššššššššššššššššššššššš sw.Flush();<br>ššššššššššššššššššš }<br>ššššššššššššššš }<br>
ššššššššššš }<br><font color="#888888">-- <br>ó õ×ÁÖÅÎÉÅÍ,<br>áÎÄÒÅÊ.<br>Best regards, Andrew<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>