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 7792881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:18:44+00:00 2026-06-01T22:18:44+00:00

Is there possible to compare two images with different resolutions? I mean here some

  • 0

Is there possible to compare two images with different resolutions?

I mean here some algorithmic/programming approach. For instance, now I calculate hash code from image’s byte array and compare these hash code values. That is work great but fail in case of different resolutions, i.e. images are identical by eye but different in it byte content.

For example see my image attaches:
enter image description hereenter image description here

one of it has 72 ppi but another 96 ppi. I would like to have TRUE value while comparing on equality but now I get FALSE. Help please to find correct solution here.

  • 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-06-01T22:18:45+00:00Added an answer on June 1, 2026 at 10:18 pm

    Two very simple perceptual hashing methods you might give a try before venturing into more complicated territory are based on the Discrete Cosine Transform and the local vs glocal mean of an image:

    1. Convert image to grayscale

      1.1 (EDIT) Make your image zero mean

    2. Crush your image down to thumbnail size, say [32×32]
    3. Run the two dimensional Discrete Cosine Transform
    4. Keep the top left [8 x 8], most significant low frequency components
    5. Binarize the block, based on the sign of the components
    6. Result is a 64 bit hash

    And a variant on this theme would be

    1. Convert image to grayscale
    2. Optionally re-size to a predefined size.
    3. Partition the image in a fixed number of blocks
    4. Determine the global mean
    5. Determine the local mean per block
    6. For the hash, write out a 1 or a 0 per block, pending if the local
      mean was larger or smaller than the global mean.

    Also, have a look at phash.

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

Sidebar

Related Questions

Is it possible to compare two different strings... Finding common words between the two
My use case expects heavy read load - there are two possible model design
Is there a simple way to compare two EntityObjects for value-equality. I simply want
I want to be able to compare two doubles disregarding a possible precision loss.
Is it possible through SQL in oracle to compare two tables and list the
Possible Duplicate: PHP compare array I have to compare two arrays in php and
Possible Duplicate: Using jQuery to compare two arrays I have to send the form
Possible Duplicate: What is the best way to compare two entity framework entities? I
I need a simple and fast way to compare two images for similarity. I.e.
Possible Duplicate: How to compare two word documents? How can you get the diff

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.