2020-03-02 03:01:01 -0600 | received badge | ● Popular Question (source) |
2015-04-22 07:07:48 -0600 | commented question | Opencv Python - Similarity score from Feature matching + Homograpy I tried this in python, If both images are same then it will give me 0. it gives result in the range of 0 to 1. so are you suggesting that I should calculate similarity score(percentage between 0 to 1) between 0 and 1. the more nearer to 0 , more similar it will be? |
2015-04-22 05:04:09 -0600 | received badge | ● Student (source) |
2015-04-22 04:34:37 -0600 | asked a question | Opencv Python - Similarity score from Feature matching + Homograpy I have several fish images in my database , My Goal is to find similarity score between user input fish image and images in database. For that I am using opencv Feature matching + Homograpy from this link. http://opencv-python-tutroals.readthe... My current code is as followed. My current code is as followed. I am getting pretty good output which I am assuming by seeing number of good matches and matchesMask variable (which contains some 0's and 1's). If database contains same image as input image then there will be many good matches and all matchesMask elements will be 1. My question is how to calculate similarity score based on this? should I assume that the more number of 1's (Inliers) are there in matchesMask, more both images are similar or should I take ratio between number of 1's(inliers) and 0's(outliers) and calculate similarity based on that. I know this has been discussed in many questions , but all the suggestions and answers are in C++ language , so I cant figure out solution.. |