Wrapper around the required getImageDir*() function and exchangeImage(). Exchanges the image of the SPATA2 object by using the directories that have been set with setImageDir*() family or with addImageDir().

loadImage(object, name, ...)

loadImageDefault(object, ...)

loadImageHighres(object, ...)

loadImageLowres(object, ...)

Arguments

object

An object of class spata2.

name

Character value. Name of the image directory.

...

Additional arguments given to exchangeImage().

Value

The input spata2 object containing the added or computed results.