resetImageTransformations: Reset image transformations

resetImageTransformationsR Documentation

Reset image transformations

Description

Resets the transformation values of an image defined by usage of alignImage(), alignImageAuto() or alignImageInteractive().

Usage

resetImageTransformations(object, ...)

## S4 method for signature 'SPATA2'
resetImageTransformations(object, img_name, ...)

## S4 method for signature 'SpatialData'
resetImageTransformations(object, img_name, ...)

## S4 method for signature 'HistoImage'
resetImageTransformations(object, ...)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

...

Used to absorb deprecated arguments or functions.

img_name

Character value. The name of the image of interest. If NULL, the active image is chosen by default. Either way, must be one of getImageNames().

Value

The updated input object, containing the added, removed or computed results.

See Also

getImageTransformations()

Examples

library(SPATA2)

data("example_data")

object <- example_data$object_UKF313T_diet

plotImage(object)

object <- alignImage(object, img_name = "lowres", angle = 90)

# note that $angle contains instructions to rotate the image to 90°
getImageTransformations(object, img_name = "lowres")

plotImage(object)

object <- resetImageTransformations(object, img_name = "lowres")

getImageTransformations(object, img_name = "lowres")

plotImage(object)


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.