edgeObjects: Identify Objects along Edge of Image

edgeObjectsR Documentation

Identify Objects along Edge of Image

Description

Identify objects within border pixels of the edge of an integer Image object.

Usage

edgeObjects(x, border = 1)

Arguments

x

An Image object in Grayscale color mode or an array containing object masks. Object masks are sets of pixels with the same unique integer value.

border

Number of pixels from the edge to include.

Value

A vector of integers or list of integers identifying objects at the edge

Examples

  x <- readImage(system.file("extdata", "by_folder/b4/file001.tif", package = "virustiter"))
  nm0 <- nucMask(x)
  sel <- edgeObjects(nm0, border = 16)
  nm1 <- rmObjects(nm0, sel)
  plot(colorLabels(combine(nm0, nm1)), all = TRUE, nx = 1)


ornelles/virustiter documentation built on March 29, 2024, 8:30 p.m.