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.
- depth
- Desired depth of the output image, R.
- aperturesize
- Optional aperture size for the computation of second-derivative filters. Must be a positive and odd integer. Default value is 1.
- scale
- Optional scale factor. Default value is 1.0, with no scaling applied.
- delta
- Optional delta value to be added to R. Default value is 0.0
- 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
Outputs
- R
- Handle of image with Laplacian filter applied.
Example
Apply a Laplace filter with default options:
handle = imreadcv('owl.jpg');
depth = 3;
R = laplaciancv(handle, 3);