Click4Ai

326.

Hard

Harris Corner Detection

==========================

**Problem:** Given an image, detect the corners within the image using the Harris corner detection algorithm.

Example:

Suppose we have an image of a cat. We want to detect the corners within the image.

Constraints:

  • The image is a 2D numpy array with pixel values between 0 and 255.
  • The image is grayscale.
  • Test Cases

    Test Case 1
    Input: [[[255, 255, 255], [255, 255, 255]]]
    Expected: [[0.0, 0.0]]
    Test Case 2
    Input: [[[0, 0, 0], [0, 0, 0]]]
    Expected: [[0.0, 0.0]]
    + 3 hidden test cases