Matching an image with a database
古いコメントを表示
I am looking to compare a new image to a database of images, and then output the higher "similarity". The images I want to compare are similar, but the problem is though because they're not pixel by pixel equal. I've tried to use BoW (Bag Of Words) model already, as per recommendation, I tried various implementations without success, the best correct rate I got was 30%, which is something really low.
Let me show you what I am talking about: (imgur gallery with 5 example images) http://imgur.com/a/ukf5E#0. I want to detect that the four initial images are equal, and the fifth one is different. I wouldn't mind only detecting that the ones with the same angle orientation are equal, though. (In my example 2, 3 and 4)
So, that being said, are there any better methods than BoW for that? Or perhaps BoW should be enough if I implemented in a different way?
Thanks in advance.
2 件のコメント
Aravind Dhakshinamoorthy
2016 年 12 月 14 日
Try using the SIFT algorithm. It detects key points in both images and maps the similar ones. Greater number of similar points greater the similarity.
Hamad ALshahrani
2020 年 3 月 30 日
Write a Matlab program to find an image in the database similar to a query image which it is: a. Not in the database but for the same person. b. Not in the database and for another person. For both cases above, repeat the process 10 times on different faces and compute the accuracy ratio.
採用された回答
その他の回答 (3 件)
Anand
2013 年 3 月 23 日
save idx.mat idx;
save centers.mat centers;
Mohammed Magdy
2013 年 10 月 7 日
0 投票
hello please why did you use this number (2) here (features{i},2)
histFtrs{i} = hist(idx(start:start+size(features{i},2)),nWords)';
5 件のコメント
Anand
2013 年 10 月 11 日
I used that to get the second dimension of features{i}
>> size(features{1})
ans =
64 15
There are 15 features and that's the number I was looking to get.
Mohammed Magdy
2013 年 10 月 13 日
Hello i used gist descriptor (the descriptor for each image is a row vector 1*512. I choose nWords=30 but i don't have a good result. Please do you have any idea about this descriptor (GIST).
hamed abdulaziz
2014 年 3 月 11 日
I have medical images and I need to classify them to normal and abnomal using bag of words model where I divided each image to patches(blocks) and extracted local features from each patch,my question how can I use k-means algorithm to constrcut visual words vocabulary,could any one provide me matlab code for this job,and thanks in advance
Anand
2014 年 3 月 12 日
The code above shows how to do this. http://www.mathworks.com/matlabcentral/answers/67478#answer_79060
hamed abdulaziz
2014 年 3 月 23 日
Anand :Thank you,I saw the code above but I divided each image to patches(blocks) and extracted local features from each patch,where is the code doesn't do that,could you guide me with my thanks.
Yuva
2017 年 10 月 20 日
0 投票
I am doing my final year project on attedance system by face recognition using SIFT algorithm,if there is any code on this project please comment code or provide any link .
カテゴリ
ヘルプ センター および File Exchange で Recognition, Object Detection, and Semantic Segmentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!