resetImageTransformations | R Documentation |
Resets the transformation values of an image defined
by usage of alignImage()
, alignImageAuto()
or alignImageInteractive()
.
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, ...)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
img_name |
Character value. The name of the image of interest.
If |
The updated input object, containing the added, removed or computed results.
getImageTransformations()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.