laplaciancv

Apply a Laplace filter on the image, handle.

Syntax

R = laplaciancv(handle, depth...)

R = laplaciancv(handle, depth, aperturesize, scale, delta, type)

Inputs

handle
Handle of an image.
Type: integer
depth
Desired depth of the output image, R.
Type: integer
aperturesize
Optional aperture size for the computation of second-derivative filters. Must be a positive and odd integer. Default value is 1.
Type: integer
scale
Optional scale factor. Default value is 1.0, with no scaling applied.
Type: scalar
delta
Optional delta value to be added to R. Default value is 0.0
Type: scalar
type
Optional type specifying the pixel extrapolation method. Default value is 4. Valid values are:
0
Type cv::BORDER_CONSTANT.
1
Type cv::BORDER_REPLICATE
2
Type cv::BORDER_REFLECT
3
Type cv::BORDER_WRAP
4
Type cv::BORDER_DEFAULT - default
16
Type cv::BORDER_ISOLATED
Type: integer

Outputs

R
Handle of image with Laplacian filter applied.
Type: integer

Example

Apply a Laplace filter with default options:

handle = imreadcv('owl.jpg');
depth = 3;
R = laplaciancv(handle, 3);


Figure 1. Input image


Figure 2. Input image