profoundImBlur: Image Transformations

View source: R/profoundUtility.R

profoundImR Documentation

Image Transformations

Description

Various image transformation functions that assist in exploring data. These all require the imager package to be installed.

Usage

profoundImBlur(image = NULL, sigma = 1, plot = FALSE, ...)
profoundImGrad(image = NULL, sigma = 1, plot = FALSE, ...)
profoundImDiff(image = NULL, sigma = 1, plot = FALSE, ...)

Arguments

image

Numeric matrix; required, the image we want to analyse.

sigma

Numeric scalar; standard deviation of the blur.

plot

Logical; should a magimage plot of the output be generated?

...

Further arguments to be passed to magimage. Only relevant is plot=TRUE.

Value

Numeric matrix; a new image the same size as image, with the relevant transform applied.

For profoundImBlur the output is a smoothed version of the image.

For profoundImGrad the output is the magnitude of the gradient of the smoothed version of the image.

For profoundImDiff the output is the original image minus the smoothed version of the image.

Author(s)

Aaron Robotham

See Also

profoundMakeSegim, profoundMakeSegimExpand

Examples

## Not run: 
image = Rfits_read_image(system.file("extdata", 'VIKING/mystery_VIKING_Z.fits',
  package="ProFound"))$imDat
magimage(image)
profoundImBlur(image, plot=TRUE)
profoundImGrad(image, plot=TRUE)
profoundImDiff(image, plot=TRUE)

## End(Not run)

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