getImageAnnotationCenter | R Documentation |
getImgAnnCenter()
computes the
x- and y- coordinates of the center of the outer border, returns
a numeric vector of length two. getImgAnnCenters()
computes the center of the outer
and every inner border and returns a list of numeric vectors of length two.
getImageAnnotationCenter(...)
getImgAnnCenter(object, ...)
## S4 method for signature 'spata2'
getImgAnnCenter(object, id)
## S4 method for signature 'ImageAnnotation'
getImgAnnCenter(object)
getImgAnnCenters(object, ...)
## S4 method for signature 'spata2'
getImgAnnCenters(object, id, outer = TRUE, inner = TRUE)
## S4 method for signature 'ImageAnnotation'
getImgAnnCenters(object, outer = TRUE, inner = TRUE)
... |
Used to absorb deprecated arguments or functions. |
object |
An object of class |
id |
Character value. The ID of the image annotation of interest. |
outer |
Logical value. Only applies if an image annotation contains a secondary image annotation within its own area. If |
inner |
Logical value. Only applies if an image annotation contains a secondary image annotation within its own area. If |
Numeric vector of length two or a list of these. Values are named x and y.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.