Learn R Programming

imager (version 0.14)

imsharpen: Sharpen image.

Description

Sharpen image.

Usage

imsharpen(im, amplitude, sharpen_type = FALSE, edge = 1, alpha = 0,
  sigma = 0)

Arguments

im
an image
amplitude
Sharpening amplitude
sharpen_type
Select sharpening method. Can be { false=inverse diffusion | true=shock filters }.
edge
Edge threshold (shock filters only).
alpha
Gradient smoothness (shock filters only).
sigma
Tensor smoothness (shock filters only).

Examples

Run this code
layout(t(1:2))
plot(boats,main="Original")
imsharpen(boats,150)  %>% plot(main="Sharpened")

Run the code above in your browser using DataLab