anisotropicDiffusion | R Documentation |
anisotropicDiffusion
Perona-Malik anisotropic diffusion
to an Image
object.
anisotropicDiffusion(image, alpha = 0.1, K = 1, n_iters = 1, target = "new")
image |
An 8-bit (8U) 3-channel |
alpha |
The amount of time to step forward by on each iteration (normally, it's between 0 and 1; default: 0.1). |
K |
Sensitivity to the edges (default: 1). |
n_iters |
The number of diffusion iterations. |
target |
The location where the results should be stored. It can take 3 values:
|
If target="new"
, the function returns an Image
object. If target="self"
, the function returns nothing and modifies
image
in place. If target
is an Image
object,
the function returns nothing and modifies that Image
object in
place.
Simon Garnier, garnier@njit.edu
Image
, gaussianBlur
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_smooth <- anisotropicDiffusion(balloon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.