zapsmall.im: Rounding of Pixel Values

View source: R/images.R

zapsmall.imR Documentation

Rounding of Pixel Values

Description

Modifies a pixel image, identifying those pixels that have values very close to zero, and replacing the value by zero.

Usage

  zapsmall.im(x, digits)

Arguments

x

Pixel image (object of class "im").

digits

Argument passed to zapsmall indicating the precision to be used.

Details

The function zapsmall is applied to each pixel value of the image x.

Value

Another pixel image.

Author(s)

\ege

and \adrian

See Also

zapsmall

Examples

  Z <- as.im(function(x,y) { exp(-40*(x+y)) }, square(1), dimyx=32)
  zapsmall.im(Z)

spatstat.geom documentation built on Oct. 20, 2023, 9:06 a.m.