Skip to content

re-apply mask to brainchop result to avoid negative values#1

Open
kjamison wants to merge 1 commit intorordenlab:mainfrom
kjamison:maskfix
Open

re-apply mask to brainchop result to avoid negative values#1
kjamison wants to merge 1 commit intorordenlab:mainfrom
kjamison:maskfix

Conversation

@kjamison
Copy link
Copy Markdown

brainchop sometimes gives negative values outside mask, which then causes ANTs registration to fail. This PR adds apply_mask to do_brainchop(), which runs brainchop with additional -a maskfile.nii.gz, and then loads that binary mask to remask the bt1 output. By default, normalize() uses this new do_brainchop(apply_mask=True) option

…k to do_brainchop() to load the binary mask and remask the output, and use this by default in normalize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant