http://stackoverflow.com/questions/22432673/how-to-measure-the-cosine-similarity-between-2-images
You could use the matlab's built in function to get the cosine distance:
pdist([u;v],'cosine')
which returns the "One minus the cosine of the included angle between points". You could then subtract the answer from one to get the 'cosine of the included angle' (similarity), like this:
1 - pdist([u;v],'cosine')
'Computer Vision' 카테고리의 다른 글
Creating Computer Vision and Machine Learning Algorithms That Can Analyze Works of Art - 화가들의 작품을 분석하여 영향을 끼친 그림들을 찾아내고 그림들을 시간순으로 분석해냄 (0) | 2016.12.08 |
---|---|
Tangent line to a curve at a given point (0) | 2016.11.29 |
Iris Recognition Algorithms Comparison between Daugman algorithm and Hough transform on Matlab (0) | 2016.05.11 |
facerec framework (0) | 2016.05.10 |
OpenFace (0) | 2016.05.09 |