We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
generate_docker.sh
--freesurfer version=7.4.1 \
defacing_algorithms.py
def mideface_cmd(in_file, out_file): """ Setup mideface command. Parameters ---------- image : str Path to image that should be defaced. outfile : str Name of the defaced file. """ from subprocess import check_call cmd = [ "deepdefacer", "--i", in_file, "--o", out_file, ] check_call(cmd) return out_file def run_mideface(in_file, out_file): """ Setup and run mridefacer workflow. Parameters ---------- image : str Path to image that should be defaced. subject_label : str Label of subject to operate on (without 'sub-'). bids_dir : str Path to BIDS root directory. """ mideface = pe.Node( Function( input_names=["in_file", "out_file"], output_names=["out_file"], function=deepdefacer_cmd, ), name="mideface", ) mideface.inputs.in_file = in_file mideface.inputs.out_file = out_file results = mideface.run() out_file = results.outputs.out_file return out_file
The text was updated successfully, but these errors were encountered:
No branches or pull requests
generate_docker.sh
defacing_algorithms.py
The text was updated successfully, but these errors were encountered: