Extract brain from 3D binary mask images

I got the 3D mask of brain by using StripTsImageFilter,How can I use mask to extract brain?

Maybe use MaskImageFilter, see example.

Thank you, sir.
I’ve used mask to get the brain image!Although I haven’t studied C + +, after consulting the guide book and example,I finally successfully used MaskImageFilter with Python . It’s not easy for me, but it’s worth it.

1 Like