Table Of Contents

extract-image-region

Synopsis

extract-image-region <input> <output> [options]

Description

Crop/pad image by extracting a region of interest. The output image region is chosen such that it contains the union of all specified axis-aligned rectangular input image regions. In case of extract-image-region -pad, the output region does not have to be fully contained within the input image. Values outside are then set to the specified padding value.

Arguments

input

Input image.

output

Output image.

Command options

-Rx1 <int>

Leftmost input voxel index along x axis.

-Rx2 <int>

Rightmost input voxel index along x axis.

-Ry1 <int>

Leftmost input voxel index along y axis.

-Ry2 <int>

Rightmost input voxel index along y axis.

-Rz1 <int>

Leftmost input voxel index along z axis.

-Rz2 <int>

Rightmost input voxel index along z axis.

-Rt1 <int>

Leftmost input voxel index along t axis.

-Rt2 <int>

Rightmost input voxel index along t axis.

-patch <i> <j> <k> <nx> [<ny> [<nz>]]

Extract image patch of given size centered at the specified voxel.

-closest-patch <x> <y> <z> <nx> [<ny> [<nz>]]

Extract image patch of given size centered at nearest voxel to specified point [mm].

-landmarks <file>...

Extract minimum bounding box containing the landmark points.

-ref <image>

Extract region specified by discrete reference image domain.

-margin <int>

Add fixed-width margin to union of image regions. (default: 0)

-scale <float>

Scale resulting region by specified factor. (default: 1)

-pad [<value>]

Pad output image by the specified value. (default: 0)

Standard options

-v, -verbose [n]

Increase/Set verbosity of output messages. (default: 0)

-debug [level]

Increase/Set debug level for output of intermediate results. (default: 0)

-version [major.minor]

Print version and exit or set version to emulate.

-revision

Print revision (or version) number only and exit.

-h, -help

Print help and exit.