http://www.emgu.com
Calculates Laplacian of the source image by summing second x- and y- derivatives calculated using Sobel operator:
dst(x,y) = d2src/dx2 + d2src/dy2
Specifying aperture_size=1 gives the fastest variant that is equal to convolving the image with the following kernel:
|0 1 0|
|1 -4 1|
|0 1 0|
Similar to cvSobel function, no scaling is done and the same combinations of input and output formats are supported.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void Laplacian(
IInputArray src,
IOutputArray dst,
DepthType ddepth,
int ksize = 1,
double scale = 1,
double delta = 0,
BorderType borderType = BorderType.Reflect101
)
Public Shared Sub Laplacian (
src As IInputArray,
dst As IOutputArray,
ddepth As DepthType,
Optional ksize As Integer = 1,
Optional scale As Double = 1,
Optional delta As Double = 0,
Optional borderType As BorderType = BorderType.Reflect101
)
public:
static void Laplacian(
IInputArray^ src,
IOutputArray^ dst,
DepthType ddepth,
int ksize = 1,
double scale = 1,
double delta = 0,
BorderType borderType = BorderType::Reflect101
)
static member Laplacian :
src : IInputArray *
dst : IOutputArray *
ddepth : DepthType *
?ksize : int *
?scale : float *
?delta : float *
?borderType : BorderType
(* Defaults:
let _ksize = defaultArg ksize 1
let _scale = defaultArg scale 1
let _delta = defaultArg delta 0
let _borderType = defaultArg borderType BorderType.Reflect101
*)
-> unit
Parameters
- src
- Type: Emgu.CVIInputArray
Source image. - dst
- Type: Emgu.CVIOutputArray
Destination image. Should have type of float - ddepth
- Type: Emgu.CV.CvEnumDepthType
Desired depth of the destination image. - ksize (Optional)
- Type: SystemInt32
Aperture size used to compute the second-derivative filters. - scale (Optional)
- Type: SystemDouble
Optional scale factor for the computed Laplacian values. By default, no scaling is applied. - delta (Optional)
- Type: SystemDouble
Optional delta value that is added to the results prior to storing them in dst. - borderType (Optional)
- Type: Emgu.CV.CvEnumBorderType
Pixel extrapolation method.
See Also