Back to FabImage Studio website

You are here: Start » Filter Reference » OpenCV » Feature Detection » cvCornerHarris

cvCornerHarris


Module: OpenCV

Harris corner detector.

Name Type Range Description
Input value
inImage Image Input single-channel UINT8 or REAL image.
Input value
inBlockSize Integer 1 - Neighborhood size.
Input value
inApertureSize Integer 1 - 31 Aperture parameter for the Sobel operator, may be 3, 5 or 7.
Input value
inK Real Harris detector free parameter.
Input value
inBorderType CvBorderType Pixel extrapolation method.
Output value
outImage Image Harris detector result image.

Description

The operation detects corners within inImage image using the Harris corner response method. For more information on the method please refer to the DetectCorners_CornerResponse article. outImage is a corner response image of type Real with pixel values from -255 to 255.

Examples

cvCornerHarris performed on the sample image. Output image is rescaled to range [0,255].

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input image must be single-channel UINT8 or REAL in cvCornerHarris.

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • cvCornerMinEigenVal – Calculates the minimal eigenvalue of gradient matrices for corner detection.