translateImg: Translate/shift image in space

translateImgR Documentation

Translate/shift image in space

Description

This function shifts the spatial extent of the image in the x-y plane.

Usage

## S4 method for signature 'SpatRasterImage'
translateImg(x, v, ...)

## S4 method for signature 'BioFormatsImage'
translateImg(x, v, ...)

## S4 method for signature 'ExtImage'
translateImg(x, v, ...)

Arguments

x

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

v

Numeric vector of length 2 to shift the image in the x-y plane.

...

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 shifted in space.

See Also

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


pachterlab/SpatialFeatureExperiment documentation built on May 17, 2024, 12:24 a.m.