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

imsharpen

Sharpen image.


Description

The default sharpening filter is inverse diffusion. The "shock filter" is a non-linear diffusion that has better edge-preserving properties.

Usage

imsharpen(im, amplitude, type = "diffusion", edge = 1, alpha = 0, sigma = 0)

Arguments

im

an image

amplitude

Sharpening amplitude (positive scalar, 0: no filtering).

type

Filtering type. "diffusion" (default) or "shock"

edge

Edge threshold (shock filters only, positive scalar, default 1).

alpha

Window size for initial blur (shock filters only, positive scalar, default 0).

sigma

Window size for diffusion tensor blur (shock filters only, positive scalar, default 0).

Examples

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

imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

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