get.edges.Seurat: Finds edges of a mask and returns a set of x,y coordinates...

get.edges.SeuratR Documentation

Finds edges of a mask and returns a set of x,y coordinates aligned along the edges

Description

Finds edges of a mask and returns a set of x,y coordinates aligned along the edges

Usage

## S3 method for class 'Seurat'
get.edges(object, index = 1, verbose = FALSE, type = "masked.masks")

Arguments

object

Seurat object

index

Sample index

verbose

Print messages

type

image type to run edge detection on [default: 'masked.masks']

Value

A list of data.frames with edge coordinates

Examples

## Not run: 
# Mask, align and plot edges for image 2 from a Seurat object
edges <- LoadImages(se, verbose = TRUE) %>% MaskImages() %>% get.edges(index = 2)
plot(as.raster(edges) %>% as.cimg())

## End(Not run)

jbergenstrahle/STUtility documentation built on March 14, 2023, 7:15 a.m.