scil_volume_reshape.py

usage: __main__.py [-h]
                   (--ref REF | --volume_size VOLUME_SIZE [VOLUME_SIZE ...])
                   [--mode {constant,edge,wrap,reflect}]
                   [--constant_value CONSTANT_VALUE]
                   [-v [{DEBUG,INFO,WARNING}]] [-f]
                   in_image out_image

Script to reshape a volume to match the resolution of another
reference volume or to the resolution specified as in argument. The resulting
volume will be centered in world space with respect to the reference volume or
the specified resolution.

This script will pad or crop the volume to match the desired shape.
To
    - interpolate/reslice to an arbitrary voxel size, use
      scil_volume_resample.py.
    - reslice a volume to match the shape of another, use
      scil_volume_reslice_to_reference.py.
    - crop a volume to constrain the field of view, use scil_volume_crop.py.

positional arguments:
  in_image              Path of the input volume.
  out_image             Path of the resampled volume.

options:
  -h, --help            show this help message and exit
  --ref REF             Reference volume to resample to.
  --volume_size VOLUME_SIZE [VOLUME_SIZE ...]
                        Sets the size for the volume. If the value is set to is Y, it will resample to a shape of Y x Y x Y.
  --mode {constant,edge,wrap,reflect}
                        Padding mode.
                        constant: pads with a constant value.
                        edge: repeats the edge value.
                        Defaults to [constant].
  --constant_value CONSTANT_VALUE
                        Value to use for padding when mode is constant.
  -v [{DEBUG,INFO,WARNING}]
                        Produces verbose output depending on the provided level.
                        Default level is warning, default when using -v is info.
  -f                    Force overwriting of the output files.

Scilpy version: 2.0.2