How to apply a .vtk file as mask to my 3d Image


I have a .vtk model that I have created and I want to apply that as a mask to my 3d Image.
Do you have any idea how can I approach that?


ConvertTriangleMeshToBinaryImage example should help you. Depending on what you want to achieve, you might need MaskImageFilter too.

1 Like