https://docs.pyvista.org/examples/01-filter/crop_labeled
Crop Labeled ImageData — PyVista 0.48.2 documentation
Use crop() to crop labeled data such as segmented medical images. Load a dataset with a CT image and corresponding segmentation labels. Here we load...
crop labeled imagedatapyvistadocumentation