Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6061369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:55:48+00:00 2026-05-23T08:55:48+00:00

I basically want to take two images taken from the camera on the iPhone

  • 0

I basically want to take two images taken from the camera on the iPhone or iPad 2 and compare them to each other to see if they are pretty much the same. Obviously due to light etc the image will never be EXACTLY the same so I would like to check for around 90% compatibility.

All the other questions like this that I saw on here were either not for iOS or were for locating objects in images. I just want to see if two images are similar.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:55:49+00:00Added an answer on May 23, 2026 at 8:55 am

    As a quick, simple algorithm, I’d suggest iterating through about 1% of the pixels in each image and either comparing them directly against each other or keeping a running average and then comparing the two average color values at the end.

    You can look at this answer for an idea of how to determine the color of a pixel at a given position in an image. You may want to optimize it somewhat to better suit your use-case (repeatedly querying the same image), but it should provide a good starting point.

    Then you can use an algorithm roughly like:

    float numDifferences = 0.0f;
    float totalCompares = width * height / 100.0f;
    for (int yCoord = 0; yCoord < height; yCoord += 10) {
        for (int xCoord = 0; xCoord < width; xCoord += 10) {
            int img1RGB[] = [image1 getRGBForX:xCoord andY: yCoord];
            int img2RGB[] = [image2 getRGBForX:xCoord andY: yCoord];
            if (abs(img1RGB[0] - img2RGB[0]) > 25 || abs(img1RGB[1] - img2RGB[1]) > 25 || abs(img1RGB[2] - img2RGB[2]) > 25) {
                //one or more pixel components differs by 10% or more
                numDifferences++;
            }
        }
    }
    
    if (numDifferences / totalCompares <= 0.1f) {
        //images are at least 90% identical 90% of the time
    }
    else {
        //images are less than 90% identical 90% of the time
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to take two tables and just put them next to each other
I want to compare two vector images (say SVG) and see how close they
Basically I have a two databases on SQL Server 2005. I want to take
Basically I want to take an image that the user chooses from their photo
I want to take two value from user i.e name and location and then
I have a partial view that I want to basically take care of itself
I basically want the same functionality as facebook, twitter and all those other infinite
I basically want to open a browser window from Word using VBA that does
Sheet1 Sheet2 Above i have two images link that i have captured from my
Basically I want to take all the names (RequiredAccount, RequiredContact, RequiredOwner) for all the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.