Skip to content

Commit

Permalink
enh: Add -size option to average images node
Browse files Browse the repository at this point in the history
  • Loading branch information
schuhschuh committed Aug 31, 2015
1 parent d66ec2d commit e4607c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/daggen/irtk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,7 @@ average_node()
local dofsuf='.dof.gz'
local average=
local options='-v'
local voxelsize=
local label margin bgvalue

while [ $# -gt 0 ]; do
Expand All @@ -1057,6 +1058,10 @@ average_node()
-dofsuf) optarg dofsuf $1 "$2"; shift; ;;
-output) optarg average $1 "$2"; shift; ;;
-voxelwise) options="$options -voxelwise"; ;;
-voxelsize|-size)
optargs voxelsize "$@"; shift ${#voxelsize[@]}
options="$options -size ${voxelsize[@]}"
;;
-margin) optarg margin $1 "$2"; shift; options="$options -margin $margin";;
-bgvalue) optarg bgvalue $1 "$2"; shift; options="$options -padding $bgvalue";;
-label) optarg label $1 "$2"; shift; options="$options -label $label";;
Expand Down

0 comments on commit e4607c6

Please sign in to comment.