poldracklab / pydeface

defacing utility for MRI images
MIT License
110 stars 42 forks source link

Improper defacing before reorient #41

Closed pstetz closed 11 months ago

pstetz commented 3 years ago

Hello,

For some subjects we have, parts of the brain are cut off instead of the face (see below images). However, pydeface seems to work when the image is reoriented first

You should be able to reproduce this issue by doing

curl https://patrickstetz.com/pydeface/in.nii.gz --output in.nii.gz
singularity run --cleanenv -B ./:/tmp/0 docker://poldracklab/pydeface pydeface ./in.nii.gz

Input Image

in

After defacing

in_deface

Defacing after reorienting first

reorient_deface

Would be happy to help by submitting a PR for this!!

Best, Patrick

pstetz commented 3 years ago

Looks like this is already reported in #9

ofgulban commented 2 years ago

@pstetz , thanks for opening this issue :+1: . You are welcome to submit a pull request.

effigies commented 11 months ago

9 covers this. PRs still welcome.