usm | R Documentation |
Sharpen image with unsharp mask algorithm
usm(x, radius = 50, amount = 0.2, inputRange)
x |
An |
radius |
|
amount |
A |
inputRange |
value A optional |
The unsharp mask algorithm
is applied. The value for amount
controls the magnitude of the contrast added at the edges.
The value for radius
determines the size of the edges to be enhanced
where a smaller radius enhances details on a smaller scale.
A sharpened Image
object of the same size as the input
x <- readImage(system.file("images", "sample-color.png", package="EBImage")) x <- x[156:265, 166:300,] y <- usm(x, radius = 15, amount = 0.8) plotStack(combine(x, y), label = c("Original", "Unsharp mask"), cex = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.