Learn R Programming

imager (version 0.14)

deriche: Apply recursive Deriche filter.

Description

Apply recursive Deriche filter.

Usage

deriche(im, sigma, order = 0L, axis = "x", boundary_conditions = 0L)

Arguments

im
an image
sigma
Standard deviation of the filter.
order
Order of the filter. Can be { 0=smooth-filter | 1=1st-derivative | 2=2nd-derivative }.
axis
Axis along which the filter is computed. Can be { 'x' | 'y' | 'z' | 'c' }.
boundary_conditions
Boundary conditions. Can be { 0=dirichlet | 1=neumann }.

Examples

Run this code
deriche(boats,sigma=2,order=0) %>% plot("Zeroth-order Deriche along x")
deriche(boats,sigma=2,order=1) %>% plot("First-order Deriche along x")
deriche(boats,sigma=2,order=1) %>% plot("Second-order Deriche along x")
deriche(boats,sigma=2,order=1,axis="y") %>% plot("Second-order Deriche along y")

Run the code above in your browser using DataLab