[vtkusers] Problems using vtkConnectivityFilter on Image Data
Darya Yelshyna
darya.yelshyna at yahoo.com
Fri Nov 6 12:36:48 EST 2015
Hi everyone!
I was trying to apply vtkConnectivityFilter to vtkImageData, but the program crashes at this step."This application has requested the Runtime to terminate it in an unusual way." This is this a part of my code:
dilateFilter = vtk.vtkImageContinuousDilate3D()dilateFilter.SetKernelSize(5, 5, 5)dilateFilter.SetInputConnection(logic2.GetOutputPort())dilateFilter.Update()
connectFilter = vtk.vtkConnectivityFilter()connectFilter.SetExtractionModeToLargestRegion()connectFilter.SetInputConnection(dilateFilter.GetOutputPort())connectFilter.Update()
I don't understand what is happening.. Can anybody help me?
Thank you in advance.
Best regards,Darya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151106/80bf0105/attachment.html>
More information about the vtkusers
mailing list