powered by
The default sharpening filter is inverse diffusion. The "shock filter" is a non-linear diffusion that has better edge-preserving properties.
imsharpen(im, amplitude, type = "diffusion", edge = 1, alpha = 0, sigma = 0)
an image
Sharpening amplitude (positive scalar, 0: no filtering).
Filtering type. "diffusion" (default) or "shock"
Edge threshold (shock filters only, positive scalar, default 1).
Window size for initial blur (shock filters only, positive scalar, default 0).
Window size for diffusion tensor blur (shock filters only, positive scalar, default 0).
layout(t(1:2)) plot(boats,main="Original") imsharpen(boats,150) %>% plot(main="Sharpened")
Run the code above in your browser using DataLab