Sets the file directory under which an image is read in when activated.

setImageDir(object, ...)

# S4 method for class 'SPATA2'
setImageDir(object, img_name, dir)

# S4 method for class 'SpatialData'
setImageDir(object, img_name, dir)

# S4 method for class 'HistoImage'
setImageDir(object, dir)

Arguments

dir

Character value. The directory of the new image.

Value

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

Note

The function also accepts directories that do not exist! It throws a warnign if that is the case.