containsImage.Rd
Checks if the input object has an image in the respective slot or if the slot is empty.
containsImage(object, ...)
# S4 method for class 'ANY'
containsImage(object, img_name = activeImage(object), error = FALSE)
# S4 method for class 'SpatialAnnotation'
containsImage(object, error = FALSE)
# S4 method for class 'HistoImage'
containsImage(object, error = FALSE)
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.
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()
.
Logical. If TRUE
and the input is invalid the
function throws an error.
Logical value.