getImageDf | R Documentation |
Extracts a data.frame in which each row corresponds
to a pixel in the image. (Faster than getPixelDf()
, though without
any further options.)
getImageDf(object, ...)
## S4 method for signature 'SPATA2'
getImageDf(
object,
img_name = activeImage(object),
transform = TRUE,
scale_fct = 1,
...
)
## S4 method for signature 'SpatialData'
getImageDf(
object,
img_name = activeImage(object),
transform = TRUE,
scale_fct = 1
)
## S4 method for signature 'HistoImage'
getImageDf(object, transform = TRUE, scale_fct = 1)
## S4 method for signature 'SpatialAnnotation'
getImageDf(object, rescale_axes = TRUE, scale_fct = 1)
## S4 method for signature 'Image'
getImageDf(object, scale_fct = 1)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
img_name |
Character value. The name of the image of interest.
If |
transform |
Logical value. Ignored if no images exist in the object. If |
rescale_axes |
Logical value. If The image annotation contains a crop of the original image that only shows
the area of the image annotation (plus |
Data.frame with three variables.
width: Numeric. Width value of the pixel (position on horizontal axis).
height: Numeric. Height value of the pixel (position on vertical axis).
color: Character. HEX-code of the color the pixel carries.
getPixelDf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.