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

  • Home
  • SEARCH
  • 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 6679437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:21:33+00:00 2026-05-26T04:21:33+00:00

Using Objective-C, is there any way to compare two images and get a %

  • 0

Using Objective-C, is there any way to compare two images and get a % difference value returned?

For example, one image will have and X in it. Another image will have an X in it. And a third will have a H in it. All the same font/color.

Obviously the X and the X will have a % difference that is very small. The % between the X and the H would be very big.

How would I write a function that can return me the % difference?

  • 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-26T04:21:34+00:00Added an answer on May 26, 2026 at 4:21 am

    You are going to have to think quite carefully about what kind of differences you care about.

    Doing a pixel-by-pixel comparison of identically sized images won’t be too hard. Assign an error value to each pixel, and then somehow combine the differences to produce a single figure.

    Scaling one or other image if they start off different sizes but the same aspect ratio is also fairly simple.

    However, the edge cases get tricky very quickly. For example, what happens if your two X characters are displaced, so one is on the left of the image, and the other on the right? Should these be detected as “similar” somehow?

    Also, when comparing H to X, you want a high score – but how then would you rank an X against a colour picture of a butterfly? Even higher, presumably, but how much higher?

    Some kind of learning neural network might help you, where you work out what values you would assign yourself to some sample comparisons, then train the network to return those values for your sample images. But that isn’t trivial to code.

    If your comparison requirements are simpler – for example, you are doing some kind of OCR equivalent, and you know that your inputs are likely to be monochromatic characters, then there are other tricks you can use – but the appropriate ones will depend on what you are trying to achieve.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any way to access private youtube videos using objective c?
I have troubles using a foreign protocol in Objective-C. Is there any other solution
Whats the best way to get the current time (HH:MM:SS) using Objective-C. I would
I am a new objective-c/iPhone developer and am wondering if there is any way
I was wondering if is there any way to quickly check iOS/objective-c snippets or
this is killing me but is there any simple way to have objective-c code
What is the best way to generate random numbers using Objective-C on iOS? If
Anyone knows how to convert .jpg image to .bmp format in iphone using objective-C?
I have a plugin which is applied on few element. Is there any way
how to get latitude and longitude values of a particular place using objective-c ?

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.