Reads the image based on the directory stored in slot @dir of the HistoImage object. This makes the image availble quicker but increases the size of the object.

loadImage(object, ...)

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

# S4 method for class 'SpatialData'
loadImage(object, img_name, verbose = TRUE)

# S4 method for class 'HistoImage'
loadImage(object, verbose = TRUE)

loadImages(object, ...)

# S4 method for class 'SPATA2'
loadImages(object, verbose = TRUE, force = FALSE)

# S4 method for class 'SpatialData'
loadImages(object, verbose = TRUE, force = FALSE)

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().

verbose

Logical. If TRUE, informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

force

Logical value. If TRUE, image is loaded even if the image slot is not empty.

Value

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