CvInvokeCornerHarris Method |
http://www.emgu.com
Runs the Harris edge detector on image. Similarly to cvCornerMinEigenVal and cvCornerEigenValsAndVecs, for each pixel it calculates 2x2 gradient covariation matrix M over block_size x block_size neighborhood. Then, it stores
det(M) - k*trace(M)^2
to the destination image. Corners in the image can be found as local maxima of the destination image.
Namespace: Emgu.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void CornerHarris(
IInputArray image,
IOutputArray harrisResponse,
int blockSize,
int apertureSize = 3,
double k = 0.04,
BorderType borderType = BorderType.Reflect101
)
Public Shared Sub CornerHarris (
image As IInputArray,
harrisResponse As IOutputArray,
blockSize As Integer,
Optional apertureSize As Integer = 3,
Optional k As Double = 0.04,
Optional borderType As BorderType = BorderType.Reflect101
)
public:
static void CornerHarris(
IInputArray^ image,
IOutputArray^ harrisResponse,
int blockSize,
int apertureSize = 3,
double k = 0.04,
BorderType borderType = BorderType::Reflect101
)
static member CornerHarris :
image : IInputArray *
harrisResponse : IOutputArray *
blockSize : int *
?apertureSize : int *
?k : float *
?borderType : BorderType
(* Defaults:
let _apertureSize = defaultArg apertureSize 3
let _k = defaultArg k 0.04
let _borderType = defaultArg borderType BorderType.Reflect101
*)
-> unit
Parameters
- image
- Type: Emgu.CVIInputArray
Input image - harrisResponse
- Type: Emgu.CVIOutputArray
Image to store the Harris detector responces. Should have the same size as image - blockSize
- Type: SystemInt32
Neighborhood size - apertureSize (Optional)
- Type: SystemInt32
Aperture parameter for Sobel operator (see cvSobel). format. In the case of floating-point input format this parameter is the number of the fixed float filter used for differencing. - k (Optional)
- Type: SystemDouble
Harris detector free parameter. - borderType (Optional)
- Type: Emgu.CV.CvEnumBorderType
Pixel extrapolation method.
See Also