scaleImg: Scale image

scaleImgR Documentation

Scale image

Description

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

Usage

## S4 method for signature '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.

See Also

Other image methods: SFE-image, affineImg(), cropImg(), dim,BioFormatsImage-method, ext(), imgRaster(), imgSource(), mirrorImg(), rotateImg(), translateImg(), transposeImg()


pachterlab/SpatialFeatureExperiment documentation built on Aug. 23, 2024, 11:38 p.m.