Detects the corners in a image
img_out = cornerHarris(img, blockSize, ksize, k[, borderType])
Image (Mat).
Neighborhood size (double).
Aperture parameter using in the derivatives computing (double).
Harris detector free parameter (double).
Pixel extrapolation method (double) (default BORDER_DEFAULT).
BORDER_DEFAULT
Image containing the detector response (Mat).
cornerHarris detects the corners in an image using the Harris edge detector.
cornerHarris
Corners in the image can be found as the local maxima of the response image.
scicv_Init(); img_gray = imread(getSampleImage("blobs.jpg"), CV_LOAD_IMAGE_GRAYSCALE); img_cornerHarris = cornerHarris(img_gray, 7, 5, 0.05); img_cornerHarris_norm = normalize(img_cornerHarris, 0, 255, NORM_MINMAX, CV_32FC1, []); img_corners = convertScaleAbs(img_cornerHarris_norm); matplot(img_corners); delete_Mat(img_gray); delete_Mat(img_cornerHarris); delete_Mat(img_cornerHarris_norm); delete_Mat(img_corners);