Clipping image
This function returns the image which restricts pixel value from the specified range.
clipping(img, low = 0, high = 1)
img |
input grayscale image matrix. |
low |
lowest value. |
high |
highest value. |
grayscale image matrix with the same size as 'img'.
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.