Exracts an object as created by sf::st_polygon() that corresponds to the image annotation.

getImgAnnSf(object, id)

Arguments

object

An object of class spata2.

id

Character value. The ID of the image annotation of interest.

Value

An object of class POLYGON from the sf package.