Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: [email protected]
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

Publication

Color Theory in Computer Vision
Computer Vision

Color Theory in Computer Vision

Last Updated on January 6, 2023 by Editorial Team

Author(s): Akula Hemanth Kumar

Computer Vision

Making computer vision easy with Monk, a low code Deep Learning tool, and a unified wrapper for ComputerΒ Vision.

Photo by PaweΕ‚ CzerwiΕ„ski onΒ Unsplash

Color Vision

Source

History of ColorΒ theory:

Color model from the book β€œTheory of Colors” by Johann Wolfgang.

Source

RYB colors

Proof as to why RYB was Considered to be primaryΒ colors

Source

Trichromatic Theory

  • Also known as Young-Helmholtz theory.

Three types of cone photoreceptors

  • Short-preferring(Blue)
  • Middle-preferring(Green)
  • Long-preferring(Red)
Source

RGB SpaceΒ Spanning

Source

Opponent colorΒ theory

  • There are colors not directly perceivable in normal lighting conditions.
  • The trichromatic theory fails to incorporate theseΒ colors.
  • The opponent-process works through excitatory and inhibitory responses, with the two components of each mechanism opposing eachΒ other.

Gray Scale

  • Monochromatic SingleΒ Channel
  • Pixel values from 0(Black) to 255(White)
  • Grayscale images contain only shades ofΒ gray.

Use cases

  • Less data complexity and storage requirements
  • Many applications work well with gray scales. Complex channels are not required.
  • Improved computation speeds.

RGB

  • The additive color space is based on the RGB colorΒ model.
  • Three Channels Red, Green, andΒ Blue.
  • Used in many image processing and computer vision applications.
Source

Accessing channels of RGB image usingΒ OpenCV

Additive and Subtractive ColorΒ Theory

Convert RGB to CMYK usingΒ PIL

CIE -LAB

L -Lightness ( Intensity)

a -Green toΒ Magenta

b -Blue toΒ Yellow

Convert RGB to LAB usingΒ SkImage

CIE-YCrCb

Y-LuminanceΒ , Cr -Red, CbΒ -Blue

  • Resemblance with YUVΒ mode

Convert RGB to YCrCb usingΒ SkImage

CIE-XYZ

Source

Convert RGB to XYZ usingΒ SkImage

HSV

Source

Convert RGB to HSV usingΒ Skimage

Other ColorΒ Spaces

  • Haematoxylin-Eosin-DAB(HED)
  • CIE-LCH colorΒ space
  • YUV colorΒ space
  • YIQ colorΒ space
  • Stain colorΒ space
  • HSL colorΒ space

You can find the complete jupyter notebookΒ here.

If you have any questions, you can reach Abhishek. Feel free to reach out toΒ him.

I am extremely passionate about computer vision and deep learning. I am an open-source contributor to Monk Libraries.

You can also see my other writingsΒ at:

Akula Hemanth Kumar – Medium


Color Theory in Computer Vision was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.

Published via Towards AI

Feedback ↓