Monday, 3 June 2013

MATLAB code of RGB color Extraction from Color Image

RGB (Red, Green, Blue) Color model:
Basically image divided into three types. Binary image require 1 bit/pixel and it has 1 plane. Gray scale image require 8 bit/pixel and it has 8 bitplanes. Color image having 3 planes, red green and blue, each plane require 8 bits/pixel, it has 24 bitplanes.
The RGB color model is based on a Cartesian coordinate system whose axes represent the three primary colors of light (R, G, and B), usually normalized to the range [0, 1]. The eight vertices of the resulting cube correspond to the three primary colors of light, the three secondary colors, pure white and pure black.

 Fig: RGB Color Model

HSV Model:

The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue.

 Fig: HSV Color Model
Hue, Saturation, Value or HSV is a color model that describes colors (hue or tint) in terms of their shade (saturation or amount of gray) and their brightness (value or luminance).
·         1) Hue is expressed as a number from 0 to 360 degrees representing hues of red (starts at 0), yellow (starts at 60), green (starts at 120), cyan (starts at 180), blue (starts at 240), and magenta (starts at 300).
·         2) Saturation is the amount of gray (0% to 100%) in the color.
·         3) Value (or Brightness) works in conjunction with saturation and describes the brightness or intensity of the color from 0% to 100%.  
     Color Planes:

                                                                                                             Fig: Color Planes

MATLAB Implementation of RGB Color Extraction in GUI: 

Download MATLAB code for RGB Color Extraction from following link: 

No comments:

Post a Comment