image_antsmath
Wrapper for ANTs ImageMath. ANTs ImageMath provides many operations; this module currently implements a subset. Additional operations can be added as
needed. Currently supported:
- MajorityVoting: label fusion selecting the most frequent label at each voxel.
- m: voxel-wise multiplication of two or more images.
Keywords : segmentation, label fusion, majority voting, multi-atlas, multiplication
Inputs
Section titled “Inputs”Input 1
Section titled “Input 1”Format : tuple val(meta), path(input)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| meta | map | Groovy Map containing sample information e.g. [ id:'test', single_end:false ] | True | |
| input | file | One or more NIfTI volumes to pass to the selected ImageMath operation. The number of images required depends on the operation (e.g., MajorityVoting needs 2+, m needs 2+). | True | *.{nii,nii.gz} |
Outputs
Section titled “Outputs”Format : tuple val(meta), path(*.nii.gz)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| meta | map | Groovy Map containing sample information e.g. [ id:'test', single_end:false ] | True | |
| *.nii.gz | file | Output image from the selected ImageMath operation. | True | *_{operation}.nii.gz |
versions
Section titled “versions”Format : path(versions.yml)
| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| versions.yml | file | File containing software versions | True | versions.yml |
Arguments (see process.ext)
Section titled “Arguments (see process.ext)”| Type | Description | Default | Choices | |
|---|---|---|---|---|
| operation | string | ImageMath operation to perform. Must be one of: MajorityVoting, m. | “ | - MajorityVoting - m |
| suffix | string | Suffix for the output filename. Defaults to the operation name. | None | |
| single_thread | boolean | Force single-threaded execution. | False |
| Description | DOI | |
|---|---|---|
| ANTs | Advanced Normalization Tools. | 10.1038/s41598-021-87564-6 |
Authors
Section titled “Authors”Last updated : 2026-05-12