profoundSegimEdge: Segmentation Map Edge

View source: R/profoundSegim.R

profoundSegimEdgeR Documentation

Segmentation Map Edge

Description

Just show the edge-most pixels of a segmentation map. This is useful for plotting purposes.

Usage

profoundSegimEdge(segim = NULL, fill = NULL)

Arguments

segim

Integer matrix; required, the segmentation map of interest.

fill

Scalar; optional, what to fill the empty space with (default will be integer 0L if left NULL).

Details

Simple function to set inner segmentation map values to fill.

Value

Returns the edgy segmentation map.

Author(s)

Aaron Robotham

See Also

profoundSegimPlot, ~~~

Examples

## Not run: 
image = Rfits_read_image(system.file("extdata", 'VIKING/mystery_VIKING_Z.fits',
  package="ProFound"))

profound = profoundProFound(image, magzero=30, verbose=TRUE)
colvec = c(NA, rainbow(max(profound$segim), end=2/3))
segim_edge = profoundSegimEdge(profound$segim)

magimage(image$imDat)
magimage(segim_edge, col=colvec, magmap=FALSE, add=TRUE)

## End(Not run)

asgr/ProFound documentation built on Feb. 10, 2024, 9:04 p.m.