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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:44:30+00:00 2026-06-05T05:44:30+00:00

I know many ways to find the distance between two colors – Euclidean or

  • 0

I know many ways to find the distance between two colors – Euclidean or other, in any color space – RGB, HSV or other, but I am now coming upon a problem much more simpler, find the distance between two colors in a grayscale image and I am not sure how to face it.

Lets say we have two pixels with two different grays, a = 122 and b = 201.

How would you define the distance? Is it 79? Or using the Euclidean distance for instance, knowing that Ra = 122 Ga = 122 Ba = 122 and same for Rb = 201, Gb = 201, Bb = 201, which gives an Euclidean distance of ~136.

I’ve computed the two different methods with quite a number of examples, the results are very different and I am not sure which approach to choose. Any idea?

  • 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-05T05:44:31+00:00Added an answer on June 5, 2026 at 5:44 am

    “Common definitions make use of the Euclidean distance in a device
    independent color space”

    Taken from Wikipedia: Color Difference

    Even though in grayscale R = G = B, a pixel still has all three values.
    I would stick with Euclidean distance, it seems to be the convention.

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

Sidebar

Related Questions

In how many ways we can give color info in X/HTML, css? I know
First off, I know there are many different easier/reliable ways to perform what I
I know there are many easy ways to create custom DropDown menus using various
I know there are many people who have the problem. I've tried many ways
I know there are very many different non-standard ways of finding (and converting) the
I know many people ask this but all the answers are specific apps so
I use VIM editor for PHP, i know many people will point to PDT
I know that many threads has been created here & on the internet about
I need to know how many instances of my process are running on a
I need to know how many <div> elements are in each <li> . So

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.