---
title: "Discussion on \"Euclidean Distance in N dimensions and Naive Image Quantization\" | Hashnode"
description: "Discussion on \"Euclidean Distance in N dimensions and Naive Image Quantization\". When I pitched this article to my graphic designer wife, she looked at me like I was speaking in tongues. However, I can't think of a more concise title. What this article will ultimately discuss is how something as seemingly non-quantitative as colo..."
url: "https://hashnode.com/posts/euclidean-distance-in-n-dimensions-and-naive-image-quantization/5f65145767d51d3b5d47987d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Euclidean Distance in N dimensions and Naive Image Quantization](https://hashnode.blainegarrett.com/euclidean-distance-in-n-dimensions-and-naive-image-quantization?utm_source=hashnode&utm_medium=feed)

When I pitched this article to my graphic designer wife, she looked at me like I was speaking in tongues. However, I can't think of a more concise title. What this article will ultimately discuss is how something as seemingly non-quantitative as colo...

Sep 18, 2020 · 9 min read · hashnode.blainegarrett.com  
Read the article

-   [#math](https://hashnode.com/tag/math)
-   [#html-canvas](https://hashnode.com/tag/html-canvas)
-   [#graphics](https://hashnode.com/tag/graphics)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Blaine Garrett](https://hashnode.com/@blainegarrrett)

@blainegarrrett · Minneapolis, Minnesota, USA

  
[View profile](https://hashnode.com/@blainegarrrett)

Software Engineer and Artist

I&#39;ll find something good to put here.

## Responses 4

Markdown supported · ⌘↵ to post

[Blaine Garrett](https://hashnode.com/@blainegarrrett)

[Oct 9, 2020](https://hashnode.com/posts/euclidean-distance-in-n-dimensions-and-naive-image-quantization/5f65145767d51d3b5d47987d/comment/5f809d5f5841661b519cfd09)

One thing worth noting is that the HEX color representation is an abstraction of actual color. There are other color representations such as 48-bit color that can represent 281.5 trillion colors and CYMK that uses a 4 dimensional vector. All of these are simply abstractions of the visible light spectrum.

Also, the cones in eyes can generally distinguish 100 shades. Color blind people, typically only have 2 types of cones and thus can distinguish 10,000 colors (100x100). Most people are "trichomatic" meaning they have 3 types of cones and can thus distinguish 1,000,000 (100x100x100) colors. This is a far cry from the 16 million colors that can be represented with RGB. Although, some people (women exclusively) have an extra cone that allows them to see a wopping 100,000,000 colors. These people are considered "tetrachomatic".

[Tim Armato](https://hashnode.com/@tarmato)

[Sep 29, 2020](https://hashnode.com/posts/euclidean-distance-in-n-dimensions-and-naive-image-quantization/5f65145767d51d3b5d47987d/comment/5f72b11fd5bcfb04133f1d83)

Love it! Keep ‘em coming!

[Matt Garrett](https://hashnode.com/@Garmark93)

[Sep 20, 2020](https://hashnode.com/posts/euclidean-distance-in-n-dimensions-and-naive-image-quantization/5f65145767d51d3b5d47987d/comment/5f67a70535d6463d2b5f8f61)

This is rad.

[Katie Garrett](https://hashnode.com/@goldgrenade)

[Sep 19, 2020](https://hashnode.com/posts/euclidean-distance-in-n-dimensions-and-naive-image-quantization/5f65145767d51d3b5d47987d/comment/5f664da76dfc523d0a8937b2)

I like these sorts of articles.
