View source: R/profoundSegim.R
profoundSegimEdge | R Documentation |
Just show the edge-most pixels of a segmentation map. This is useful for plotting purposes.
profoundSegimEdge(segim = NULL, fill = NULL)
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). |
Simple function to set inner segmentation map values to fill.
Returns the edgy segmentation map.
Aaron Robotham
profoundSegimPlot
, ~~~
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.