<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1446830863666_7880">Hi everyone!</div><div id="yui_3_16_0_1_1446830863666_7880"><br></div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr">I was trying to apply vtkConnectivityFilter to vtkImageData, but the program crashes at this step.</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr">"This application has requested the Runtime to terminate it in an unusual way." This is this a part of my code:</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr"><br></div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">dilateFilter = vtk.vtkImageContinuousDilate3D()</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">dilateFilter.SetKernelSize(5, 5, 5)</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">dilateFilter.SetInputConnection(logic2.GetOutputPort())</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">dilateFilter.Update()</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class=""><br id="yui_3_16_0_1_1446830863666_8109" class=""></div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">connectFilter = vtk.vtkConnectivityFilter()</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">connectFilter.SetExtractionModeToLargestRegion()</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">connectFilter.SetInputConnection(dilateFilter.GetOutputPort())</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">connectFilter.Update()</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">I don't understand what is happening.. Can anybody help me?</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">Thank you in advance.</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">Best regards,</div><div id="yui_3_16_0_1_1446830863666_7880" dir="ltr" class="">Darya</div></div></body></html>