Learn R Programming

spatstat (version 1.23-1)

zapsmall.im: 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.

Value

  • Another pixel image.

Details

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

See Also

zapsmall

Examples

Run this code
data(cells)
  D <- density(cells)
  zapsmall.im(D)

Run the code above in your browser using DataLab