Given a vtk image:
vtkSmartPointer<vtkImageData> VTKImage = vtkSmartPointer<vtkImageData>::New();
which is a 3D image that contains a segmentation result as binary data (segmented object = 1, background = 0), How could I extract the surface of the segmented object and save it as VTKpolyData?