mridefacer | R Documentation |
MRI Defacer
mridefacer(file, ..., verbose = TRUE) get_mridefacer_mask( file, brain_mask = NULL, bet_opts = "-f 0.5", search_radius = 90, opts = NULL, template_brain = NULL, template_brain_weight = NULL, template_biometric_mask = NULL, verbose = TRUE )
file |
input file image to remove face/ears |
... |
not used |
verbose |
print diagnostic messages. If |
brain_mask |
brain mask of file. If |
bet_opts |
options to pass to |
search_radius |
search radius option to pass to |
opts |
additional options to pass to |
template_brain |
template brain image, may be |
template_brain_weight |
template brain weight image, used
for registration may be |
template_biometric_mask |
template biometric mask. Everything that
is wanted should be |
A character filename of the output image
Adapted from https://github.com/mih/mridefacer
if (have_fsl()) { file = "~/Downloads/sample_T1_input.nii.gz" if (file.exists(file)) { res = mridefacer(file) } }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.