Questions tagged [image-comparison]

Methods, algorithms and techniques for the programmatic comparison of image data.

Methods, algorithms and techniques by which images can be programmatically compared, either to one another or to a database of extracted image features.

Meaningful image comparison will typically involve the extraction of some of features from the images in question, as metadata. Many techniques for feature extraction (and subsequent feature selection) come from the content-based image retrieval field.

Typical image-comparison schemes necessitate some manner of image processing as well.

206 questions
3
votes
1 answer

Compare two images to check if they are the same

Which is the efficient way to compare two images (Bitmaps), to check if they are the same or not? I've tried to document me and I've read that I need to re-size both images to around 16x16px, but I don't get the expected result. I've tried to…
user2855724
3
votes
3 answers

jMagick - image comparision

I am trying to develop a program which would take the snapshot of webpage and will then compare it to an old one and highlight the changes if any. I am using Selenium- WebDriver for taking snapshots. For image processing and compare, after a bit…
roger_that
  • 9,493
  • 18
  • 66
  • 102
3
votes
1 answer

Comparing two faces in android

I was developing an app which compare the face which is stored in SD card and the image shown in camera preview with the help of Surface view. I wrote code to detect the face and created a bitmap which will contain the face only. I need to compare…
Linson
  • 655
  • 1
  • 7
  • 21
3
votes
1 answer

compare two images and extract the difference using emgu cv library

i want to compare two images like image1.png and image2.png.both the images look pretty same with some difference. so i want to get the difference and want to apply the difference on first image image1.png. i searched lot to get similar kind of code…
Thomas
  • 33,544
  • 126
  • 357
  • 626
3
votes
1 answer

Compare histograms of specific areas of two images? OpenCV

Basically, I want to be able to compare two histograms, but not of whole images just specific areas. I have image A and have a specific rectangular region on it that I want to compare to another image B. Is there a way to get the histogram of a…
2
votes
3 answers

Distance between N images: incrementally! (same crop, but re-compressed/adjusted)

I'm trying to figure out a geo-hashing method for images. It is hard because the space of possible images is of much higher dimensionality than lat/lng. (geo-hashing converts a location to a string where the string progressively refines the…
Benjamin H
  • 5,164
  • 6
  • 34
  • 42
2
votes
1 answer

How to use trained siamese network to predict labels for large test set with 100+ classes?

Do I have to compare each test image to an example image from each class? The test set contains around 7400 images across 104 classes. So this would be 7400 x 104 predictions? Using tensorflow on tpu's I was able to train the model pretty…
2
votes
2 answers

Convert Gray background to white background without disturbing the original image

I have cropped few images which have gray back ground and need to convert them to white back ground to compare with Reference images. The following code I implemented to convert: import cv2 im_gray = cv2.imread('gray_bg.png',…
RSK Rao
  • 193
  • 2
  • 14
2
votes
3 answers

Merging 2 images by showing one next to the other separated by a diagonal line

I have 2 images ("before" and "after"). I would like to show a final image where the left half is taken from the before image and the right half is taken from the after image. The images should be separated by a white diagonal line of predefined…
Stack Player
  • 1,470
  • 2
  • 18
  • 32
2
votes
1 answer

Data comparison using numpy

I am trying to make an algorithm using just numpy (i saw others using PIL, but it has some drawbacks) that can compare and plot the difference between two maps that show ice levels from different years. I load the images and set NaNs to zero, as I…
nyw
  • 195
  • 2
  • 11
2
votes
0 answers

Image recognition using Wand (Python)

I'm implementing a Python script to check the similarity between two images. I've been forced to use Imagemagick, so I've chosen to use Wand as Python library. My work flow is something like this: from wand.image import Image img1 =…
g_rmz
  • 721
  • 2
  • 8
  • 20
2
votes
1 answer

how to compare two faces in Android

I was developing an app which compare the face which is stored in SD card and the image shown in camera preview with the help of Surface view. I wrote code to detect the face and created a bitmap which will contain the face only. I need to compare…
user5617522
2
votes
1 answer

Euclidean Distance in Image Comparison

I am trying to compare images based on their Euclidean Distance. I have come across this pseudo code: sqrt((r1-r2)^2 + (g1-g2)^2 + (b1-b2)^2) What I am trying to figure out is- in the pseudo code above, does (r1-r2) mean: subtract red values in…
2
votes
1 answer

compare a single image with 10 or more images and find the matching one

when i run the program I need my code to : initialize the camera take a picture request user to enter paths for the current image to be stored and the image to be compared to detect edges of currently taken picture and save in database compare…
rohini
  • 45
  • 2
  • 6
2
votes
1 answer

How can I separate color pixels that are not common for two images?

Here's what I would like to do: I have an image of rice leaf. I have another image of rice leaf that got brown color spots on the leaf. What I want to do is separate the color pixels that are not common for two images using opencv.(color of the…
tdk
  • 29
  • 3