image_applymask
Apply a binary mask to a 3D or 4D image.
Keywords : Image, Mask, BET
Inputs
Section titled “Inputs”Input 1
Section titled “Input 1”Format : tuple val(meta), path(image), path(mask)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| meta | map | Groovy Map containing sample information e.g. [ id:'sample1', single_end:false ] | True | |
| image | file | 3D or 4D image to apply the mask to. | True | *.nii.gz |
| mask | file | Binary mask to apply to the image. | True | *.nii.gz |
Outputs
Section titled “Outputs”Format : tuple val(meta), path(*masked.nii.gz)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| meta | map | Groovy Map containing sample information e.g. [ id:'sample1', single_end:false ] | True | |
| *masked.nii.gz | file | Masked 3D or 4D image. | True | *masked.nii.gz |
versions
Section titled “versions”Format : path(versions.yml)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| versions.yml | file | File containing software versions | True | versions.yml |
| Description | DOI | |
|---|---|---|
| MRtrix3 | MRtrix3 is a software package for various types of diffusion imaging data, including diffusion-weighted, diffusion-tensor, and q-ball imaging. | 10.1016/j.neuroimage.2019.116137 |
Authors
Section titled “Authors”Last updated : 2025-10-30