Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

clipping

Clipping image


Description

This function returns the image which restricts pixel value from the specified range.

Usage

clipping(img, low = 0, high = 1)

Arguments

img

input grayscale image matrix.

low

lowest value.

high

highest value.

Value

grayscale image matrix with the same size as 'img'.

Examples

data(texmos2)
plot(as.raster(texmos2))

# the appearance of next one doesn't change because of normalization
x <- normalize(2 * texmos2)
plot(as.raster(x))
title(main = "Doubled pixel value with normalization", font.main = 1)

# the next one is saturated as expected
x <- clipping(2 * texmos2)
plot(as.raster(x))
title(main = "Doubled pixel value with clipping", font.main = 1)

SpatialPack

Tools for Assessment the Association Between Two Spatial Processes

v0.3-8196
GPL-3
Authors
Felipe Osorio [aut, cre] (<https://orcid.org/0000-0002-4675-5201>), Ronny Vallejos [aut] (<https://orcid.org/0000-0001-5519-0946>), Francisco Cuevas [ctb], Diego Mancilla [ctb]
Initial release
2020-09-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.