8.4.2.13. derivative
|
(packages/opencv/derivative.lsh) |
dummy function that adds OpenCV C header files in C file
8.4.2.13.0. (cvSobel src dst xorder yorder a)
|
(packages/opencv/derivative.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
// Name: cvSobel
// Purpose: calculates an image derivative d^(xorder+yorder)I/((dx)^xorder)*(dy^yoder))
// by convolving the image with extended Sobel operators.
// No scaling is performed.
//
// |-1 -2 -1| |-1 0 1|
// | 0 0 0| and |-2 0 2| are partial cases of it.
// | 1 2 1| |-1 0 1|
//
// First one corresponds to xorder = 0, yorder = 1, apertureSize = 3,
// And the second corresponds to xorder = 1, yorder = 0, apertureSize = 3.
// Context:
// Parameters:
// src - source image
// dst - destination derivative image
// xorder - order of x derivative
// yorder - order of y derivative
// apertureSize - size of colvolution operator. Must be odd: 3, 5, ... or
// | -3 0 3 | | -3 -10 -3 |
// CV_SCHARR (-1) for | -10 0 10 | or | 0 0 0 | kernels.
// | -3 0 3 | | 3 10 3 |
// Returns:
// Notes:
// The function uses replicatation border mode.
// In case of yorder is odd, the image origin is taken into account.
// (for matrices the top-left origin is assumed)
//F*/
#define CV_SCHARR -1
OPENCVAPI void cvSobel( const CvArr* src, CvArr* dst,
int xorder, int yorder,
int apertureSize CV_DEFAULT(3));
8.4.2.13.1. (cvLaplace src dst a)
|
(packages/opencv/derivative.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
// Name: cvLaplace
// Purpose: Calculates Laplacian of the image: deltaI = d^2(I)/dx^2 + d^2(I)/dy^2.
// Sobel operator is used for calculating derivatives.
// Context:
// Parameters:
// src - source image
// dst - destination image
// apertureSize - size of applied aperture
// Returns:
// Notes:
//F*/
OPENCVAPI void cvLaplace( const CvArr* src, CvArr* dst,
int apertureSize CV_DEFAULT(3) );