Giter VIP home page Giter VIP logo

color-space-translator's Introduction

Color Image Processing


Color Models, Color Space

  • A color model is a specification of a coordinate system within which each color is represented by a single point.
  • Hardware-oriented color models; e.g., color monitors and printers, RGB, CMY (cyan, magenta, yellow), CMYK (+black)
  • Application-oriented color model; HSI (hue, saturation, intensity)

RGB Color Model

  • Each color appears in its primary spectral components of R, G, and B
  • Based on a Cartesian coordinate system (cube)

HSI Color Model

  • RGB and similar others are not practical for human interpretation.
  • Hue: a color attribute that describes a pure color.
  • Saturation: a measure of the degree to which a pure color is diluted by white light.
  • The HSI space is represented by a vertical intensity axis, the length (saturation) of a vector from the axis to a color point, and the angle (hue) this vector makes with the red axis.
  • The power of HSI color model is to allow independent control over hue, saturation, and intensity.

image

Converting colors from RGB to HSI

01 Theta 02 Hue 03 Saturation 04 Intensity

Converting colors from HSI to RGB

1. RG Sector (0 < H < 120):

RG-Sector

2. GB Sector (120 < H < 240):

GB-Sector

3. BR Sector (240 < H < 360):

BR-Sector


Normalization

Normalization

color-space-translator's People

Contributors

rishabh-panda avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.