UCL / PETPVC

Partial Volume Correction in PET
Apache License 2.0
51 stars 14 forks source link

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

Open bathomas opened 7 years ago

bathomas commented 7 years ago

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

bilgelm commented 4 years ago

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)?