PiLab-CAU / ComputerVision-2401

Computer Vision Course 2024-01
Apache License 2.0
9 stars 3 forks source link

[Lecture4][0326] Questions about fast approximation in Harris corner detection #7

Closed jeonghyunpark2002 closed 3 months ago

jeonghyunpark2002 commented 6 months ago

@yjyoo3312 I have a question about fast approximation in harris corner detection!

issue1

As you can see in this figure's highlighted formula, the theta value is computed using eigenvalues of matrix M.

But you mentioned that the benefit of this fast approximation is We do not need to calculate Eigenvalue.

How can I understand this part?

Thank you! :)

yjyoo3312 commented 6 months ago

@jeonghyunpark2002 Sorry for the late reply!

I believe today's course will help the understanding of the questions.

https://github.com/PiLab-CAU/ComputerVision-2401/blob/8e5333a6387887b88dbabe67cff0bad52a0c6165/lecture4/utils.py#L201 Here's the code snippet. It demonstrates how we compute the response theta, bypassing the need for eigenvalue calculations.

The formula, lamda_1*lambda_2 - alpha(lambda_1+lambda_2)^2, has been deduced by (brilliant) mathematicians to achieve the same result. This allows us to indirectly incorporate our initial criteria for the eigenvalues at the corner points (requiring both to be significant) within the response map, eliminating the necessity to calculate eigenvalues.

Thank you:)

jeonghyunpark2002 commented 6 months ago

Thank you for the detailed explanation about my question 😄