getSpatAnnSf.Rd
Exracts an object as created by sf::st_polygon()
that
corresponds to the spatial annotation.
getSpatAnnSf(object, id, img_name = activeImage(object))
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Character value specifying the ID of the spatial annotation of interest. If there is only one spatial annotation in the object, the function will default to using it. However, if there are multiple annotations, this argument must be explicitly specified to identify the target annotation.
An object of class POLYGON
from the sf
package.