Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MG can produce blank output when eroding non-binary WM mask #19

Open
bathomas opened this issue Jun 20, 2017 · 1 comment
Open

MG can produce blank output when eroding non-binary WM mask #19

bathomas opened this issue Jun 20, 2017 · 1 comment
Labels

Comments

@bathomas
Copy link
Collaborator

The erosion of the WM using itk::BinaryErodeImageFilter can fail. Changing to itk::GrayscaleErodeImageFilter appears to fix the problem.

@bathomas bathomas added the bug label Jun 20, 2017
@bilgelm
Copy link

bilgelm commented Sep 16, 2019

I'm encountering blank outputs with MG for multiple scans. The masks contain 0's and 1's only, but the data type stored in the nifti format mask file is uint8. I will try what you suggested - is it simply changing itk::BinaryErodeImageFilter to itk::GrayscaleErodeImageFilter in petpvcMullerGartnerImageFilter.h (and using the corresponding #include)?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants