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

resetImageTransformations(object, ...)

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

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

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

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)