-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not quite defaced #35
Comments
Hi @soichih , thank you for this question. You can try different |
I will rerun with all different cost functions and see which one works the best. I am feeding a normal t1w anatomy.(It's my brain image that I've taken recently at our imaging center). The scanner is a siemens 3T prisma. Here is the mrinfo for the image I am running.
I am running pydeface with a command like this
Thank you! |
Thanks for the details. Try different datasets too. It is always possible to stumble upon specific cases where the default parameters will fail. I see that the volume is cut-off near the superior part of the head, which leads me to think that maybe your coverage is positioned more inferiorly than usual (e.g. including more of the neck). This might explain why registration to the default template is suboptimal which causes the masked region missing the eyes. If defacing fails consistently the same way, use custom templates and facemasks tweaked for your imaging center’s standards. |
I've ran with all 7 --cost algorithms but outputs were (suspiciously) similar.. I hope I've set it up correctly, but I believe changing --cost function doesn't fix it.
Yeah, this might be the case... although I'd like to argue that pydeface should be able to handle that? I can give you the test data if you are interested. |
@soichih if you argue that pydeface should do better and if you think you can improve it, feel free to send a pull request and report exactly how you propose to improve it. This is an open source project build and improved with the help of volunteers. Having said these, you can still create your own template and mask to deface to your liking. Feel free to try the alternatives too. E.g. AFNI refacer: |
Hello.
I've run pydeface (2.0.0) on a test image, but the App is not quite completely defacing.
I see that I can set template / facemask, etc.. parameters with pydeface, but I am not sure which knobs to tweak to get it properly defaced in this case. Do you have any suggestions?
The text was updated successfully, but these errors were encountered: