<span id="result_box" class="medium_text"><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 id="result_box" class="short_text"><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 id="result_box" class="short_text"><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>-- <br>ó õ×ÁÖÅÎÉÅÍ,<br>áÎÄÒÅÊ.<br>Best regards, Andrew<br>