Recently I am trying to extract the surface geometry from a binary ITK image (resulting from ostu_threshold_image_filter) into ITK mesh. Then convert this ITK MESH to a vtk polydata.
The filters I used include BinaryThresholdImageFilter, BinaryMask3DMeshSource and MeshToPolyDataFilter. I program in python. The result turns out to be of type itk.itkPolyDataPython.itkPolyDataF instead of expected vtkPolyData.
Moreover, I am not sure the result of BinaryMask3DMeshSource output a triangle mesh. Could anyone kindly provide some advise?