image-comparison

Searching an Image Database Using SIFT

末鹿安然 提交于 2019-12-02 17:46:18
Several questions have been asked about the SIFT algorithm , but they all seem focussed on a simple comparison between two images. Instead of determining how similar two images are, would it be practical to use SIFT to find the closest matching image out of a collection of thousands of images? In other words, is SIFT scalable? For example, would it be practical to use SIFT to generate keypoints for a batch of images, store the keypoints in a database, and then find the ones that have the shortest Euclidean distance to the keypoints generated for a "query" image? When calculating the Euclidean

How to work out two images's degree of similarity using php

瘦欲@ 提交于 2019-11-30 21:51:04
问题 there are two jpg files binary data,how to work out their degree of similarity using php. if it is possible to get color infomation from binary code.what's more ,the server cant surport gd,it's a delegate server. 回答1: These previous questions seem to be related: How can I measure the similarity between two images? Image fingerprint to compare similarity of many images What algorithm could be used to identify if images are the "same" or similar, regardless of size? Duplicate image detection

Matching template imge(scaled) to Main/larger image

不问归期 提交于 2019-11-29 14:59:46
问题 I want to find/check subImage/template image in main image and want to know its coordinates, I have used code given at following link to implement it, Check presence of subimage in image in iOS It is working fine, if the size of the template image is exactly same as size of the matching part of larger image. But it is not giving result properly if the subimage is scaled down or scaled up than matching part of larger image. 回答1: Use OpenCV Feature Detection. it is more accurate than template

Comparing image in url to image in filesystem in python

心不动则不痛 提交于 2019-11-27 18:54:17
Is there a quick and easy way to do such comparison? I've found few image compare questions from stackoverflow but none of those actually proved answer for this question. I have images files in my filesystem and a script that fetches images from urls. I want to check if the image in url is already the same that is on disk. Normally I would load the image in disk and url to a PIL object and use following function I found: def equal(im1, im2): return ImageChops.difference(im1, im2).getbbox() is None but this doesn't work if you have a image saved to disk with PIL as it gets compressed even if

OpenCV image comparison in Android

£可爱£侵袭症+ 提交于 2019-11-27 06:55:33
[EDIT] I have devised some code for image comparison. The matching part is still a bit flawed and I would love some assitance. The project can be found at - GitHub . I have these two images Img1 and Img2 : When I use the following command in openCV Mat img1 = Highgui.imread("mnt/sdcard/IMG-20121228.jpg"); Mat img2 = Highgui.imread("mnt/sdcard/IMG-20121228-1.jpg"); try{ double l2_norm = Core.norm( img1, img2 ); tv.setText(l2_norm+""); } catch(Exception e) { //image is not a duplicate } I get a double value for l2_norm. This double value varies for duplicate image pairs. But if the images are

How to use SIFT algorithm to compute how similar two images are?

不打扰是莪最后的温柔 提交于 2019-11-27 02:43:51
I have used the SIFT implementation of Andrea Vedaldi , to calculate the sift descriptors of two similar images (the second image is actually a zoomed in picture of the same object from a different angle). Now I am not able to figure out how to compare the descriptors to tell how similar the images are ? I know that this question is not answerable unless you have actually played with these sort of things before, but I thought that somebody who has done this before might know this , so I posted the question. the little I did to generate the descriptors: >> i=imread('p1.jpg'); >> j=imread('p2

Algorithm for finding similar images

邮差的信 提交于 2019-11-26 15:35:53
I need an algorithm that can determine whether two images are 'similar' and recognizes similar patterns of color, brightness, shape etc.. I might need some pointers as to what parameters the human brain uses to 'categorize' images. .. I have looked at hausdorff based matching but that seems mainly for matching transformed objects and patterns of shape. I have done something similar, by decomposing images into signatures using wavelet transform . My approach was to pick the most significant n coefficients from each transformed channel, and recording their location. This was done by sorting the

How to use SIFT algorithm to compute how similar two images are?

不想你离开。 提交于 2019-11-26 12:34:53
问题 I have used the SIFT implementation of Andrea Vedaldi, to calculate the sift descriptors of two similar images (the second image is actually a zoomed in picture of the same object from a different angle). Now I am not able to figure out how to compare the descriptors to tell how similar the images are ? I know that this question is not answerable unless you have actually played with these sort of things before, but I thought that somebody who has done this before might know this , so I posted

Algorithm for finding similar images

时光总嘲笑我的痴心妄想 提交于 2019-11-26 04:29:20
问题 I need an algorithm that can determine whether two images are \'similar\' and recognizes similar patterns of color, brightness, shape etc.. I might need some pointers as to what parameters the human brain uses to \'categorize\' images. .. I have looked at hausdorff based matching but that seems mainly for matching transformed objects and patterns of shape. 回答1: I have done something similar, by decomposing images into signatures using wavelet transform. My approach was to pick the most

How can I quantify difference between two images?

蓝咒 提交于 2019-11-26 01:09:47
问题 Here\'s what I would like to do: I\'m taking pictures with a webcam at regular intervals. Sort of like a time lapse thing. However, if nothing has really changed, that is, the picture pretty much looks the same, I don\'t want to store the latest snapshot. I imagine there\'s some way of quantifying the difference, and I would have to empirically determine a threshold. I\'m looking for simplicity rather than perfection. I\'m using python. 回答1: General idea Option 1: Load both images as arrays (