Open SelaO opened 6 years ago
There are different corner detection algorithms. The one used here might not be good enough for what you want.
What are you trying to achieve. Are you after the glass area. Can use blob detection for that instead. I.e colour tracking.
I'm using the corner detection from here: https://github.com/wellflat/imageprocessing-labs/tree/master/cv/corner_detection
I transform the corners to be in the same format the descriptors function expects just like your example, yet I'm getting too little matches with
reciproalMatch()
and more with justmatch()
, but both are pretty wrong.Just the corners of the two images (overlaying on top of one another):![image](https://user-images.githubusercontent.com/21977571/29748361-1a669872-8b1e-11e7-9393-91ae67458792.png)
no overlay:![image](https://user-images.githubusercontent.com/21977571/29748365-30f8dcbc-8b1e-11e7-9f60-5f5aafe67784.png)
reciprocalMatch:![image](https://user-images.githubusercontent.com/21977571/29748356-f325dd9a-8b1d-11e7-9d12-ac7eeaeb7bdb.png)
match:![image](https://user-images.githubusercontent.com/21977571/29748352-eddaa884-8b1d-11e7-866a-9157c6dc7013.png)
Code:
Why doesn't it match properly?
PS: Adding blur doesn't help.
Orginal images: