MIC-DKFZ / HD-BET

MRI brain extraction tool
Apache License 2.0
255 stars 61 forks source link

Difference between -o and -s ? #37

Open tashrifbillah opened 1 year ago

tashrifbillah commented 1 year ago

Folks, can you remind us the difference between -o as a file and -s? I used:

hd-bet -i T1w.nii.gz -o mask.nii.gz

but got two files:

mask.nii.gz and mask_mask.nii.gz

Do I need:

hd-bet -i T1w.nii.gz -o mask.nii.gz -s 0

Your documentation is unclear on this.

FabianIsensee commented 1 year ago

-o is the output image (your input image with everything that is not brain set to 0) -s is the segmentation mask of the brain, so it's 1 wherever the model thinks the brain is

tashrifbillah commented 1 year ago

Yes, I figured them out through experiement. I'll try to add them to your README.md and submit a PR.

FabianIsensee commented 1 year ago

have you tried hd-bet -h? That should tell you all this as well ;-)

tashrifbillah commented 1 year ago

It did not!

FabianIsensee commented 1 year ago

I see :-) If you want to make a PR clarifying this I am happy to accept it :-)