Skip to contents

This function scales the image about its center. After scaling, the center of the image is not shifted.

Usage

# S4 method for class 'AlignedSpatialImage'
scaleImg(x, factor, ...)

Arguments

x

An object of class *Image as implemented in this package.

factor

Numeric, scaling factor.

...

Ignored. It's there so different methods can all be passed to the same lapply in the method for SFE objects. Some methods have extra arguments.

Value

A *Image object of the same class that has been scaled. Behind the scene, it's only the extent that has been changed and the images are not changed. The center of the image is unchanged.