GetImage: Get image data

View source: R/generics.R

GetImageR Documentation

Get image data

Description

Get image data

Usage

GetImage(object, mode = c("grob", "raster", "plotly", "raw"), ...)

## S3 method for class 'Seurat'
GetImage(
  object,
  mode = c("grob", "raster", "plotly", "raw"),
  image = NULL,
  ...
)

Arguments

object

An object

mode

How to return the image; should accept one of “grob”, “raster”, “plotly”, or “raw”

...

Arguments passed to other methods

image

Name of SpatialImage object to pull image data for; if NULL, will attempt to select an image automatically

Value

Image data, varying depending on the value of mode:

“grob”

An object representing image data inheriting from grob objects (eg. rastergrob)

“raster”

An object of class raster

“plotly”

A list with image data suitable for Plotly rendering, see plotly::layout for more details

“raw”

The raw image data as stored in the object

See Also

layout


SeuratObject documentation built on Nov. 18, 2023, 1:06 a.m.