SpatRasterImage: SpatRaster representation of images in SFE objects

View source: R/image.R

SpatRasterImageR Documentation

SpatRaster representation of images in SFE objects

Description

SpatialFeatureExperiment and the Voyager package work with images differently from SpatialExperiment. In SFE and Voyager's, plotting functions for SFE objects, the images can be read with rast and represented as SpatRaster, so the image is not entirely loaded into memory unless necessary. Plotting will not load a large image into memory; rather the image will be downsampled and the downsampled version is plotted. A SpatRasterImage object (as of Bioc 3.19 or SFE version 1.6 and above) is a SpatRaster object but also inheriting from VirtualSpatialImage as required by SpatialExperiment.

Usage

SpatRasterImage(img)

## S4 method for signature 'SpatRasterImage'
show(object)

Arguments

img

A SpatRaster or PackedSpatRaster object.

object

A SpatRasterImage object.

Value

A SpatRasterImage object.

Examples

# Example code

pachterlab/SpatialFeatureExperiment documentation built on Dec. 20, 2024, 3:41 a.m.