Woolz Image Processing  Version 1.8.3
Name
WlzShiftObj - shifts objects using an integer translation.
Synopsis
WlzShiftObj [-h] [-o<output object file>]
            [-g] [-x<column shift>] [-y<line shift>] [-z<plane shift>]
            [<input object file>]
Options
-h Help - print help message
-o Output object file name.
-g shift object to the origin.
-x column shift.
-y line shift.
-z plane shift.
Description
Shifts a Woolz object without copying it's grey values. By default the input object is read from the standard input and the output object is written to the standard output.
Examples
# The following c shell script uses awk(1), WlzBoundingBox(1) and
# WlzShiftObj(1) to shift infile.wlz so that its first
# column, line, plane are at the origin.

WlzShiftObj `WlzBoundingBox infile.wlz | \
       awk '{print "-x -" $1 " -y -" $2 " -z -" $3}'` \
       -o outfile.wlz infile.wlz




# The following commad also shifts the object to it's origin.
WlzShiftObj -g -o outfile.wlz infile.wlz
File
WlzShiftObj.c
See Also
WlzBoundingBox(1) WlzAffineTransformObj(1) WlzShiftObject(3)