<span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="Ń ĪĮŪÅĢ ĪÅÓĖĻĢŲĖĻ ŠĻÄĻĀĪŁČ ×ĻŠŅĻÓĻ×, ĪĻ Ó×ĻĄ ŠŅĻĀĢÅĶÕ ŅÅŪÉŌŲ ĪÅ ĶĻĒÕ.">I found several similar questions, but their problem to solve can not.<br>
<br> vtkDICOMImageReader DicomReader = new vtkDICOMImageReader();<br> DicomReader.SetFileName(m_strFilePath);<br> DicomReader.Update();<br><br> m_ContourFilter.SetInputConnection(DicomReader.GetOutputPort());<br>
m_ContourFilter.SetValue(0, -250);<br> m_ContourFilter.Update();<br><br> m_ConnectivityFilter.SetInputConnection(m_ContourFilter.GetOutputPort());<br> m_ConnectivityFilter.ScalarConnectivityOn();<br>
m_ConnectivityFilter.SetExtractionModeToSpecifiedRegions();<br> m_ConnectivityFilter.Update();<br> int regions = m_ConnectivityFilter.GetNumberOfExtractedRegions();<br> for (int i = 0; i < regions; i++)<br>
{<br> m_ConnectivityFilter.AddSpecifiedRegion(i);<br> m_ConnectivityFilter.Update();<br> vtkPolyData PD = m_ConnectivityFilter.GetOutput();//</span></span><span id="result_box" class="short_text"><span style="background-color: rgb(235, 239, 249);" title="ŚÄÅÓŲ Ń ĪĮÄÅŃĢÓŃ Õ×ÉÄÅŌŲ vtkPolyData for I-st ŅÅĒÉĻĪĮ, ĪĻ ×ĻŚ×ŅĮŻĮÅŌÓŃ vtkPolyData ÉŚ m_contourfilter">here I was hoping to see vtkPolyData for I-st region, but returned vtkPolyData of m_contourfilter</span></span><br>
<span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="Ń ĪĮŪÅĢ ĪÅÓĖĻĢŲĖĻ ŠĻÄĻĀĪŁČ ×ĻŠŅĻÓĻ×, ĪĻ Ó×ĻĄ ŠŅĻĀĢÅĶÕ ŅÅŪÉŌŲ ĪÅ ĶĻĒÕ."> }<br clear="all"></span></span><span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="ÓŠĮÓÉĀĻ ŚĮŅĮĪÅÅ"></span></span><br>
-- <br>ó õ×ĮÖÅĪÉÅĶ,<br>įĪÄŅÅŹ.<br>Best regards, Andrew<br>