Light:: Lecture 6 Assignment Name: Hazrat Ullah Roll No: 170387 Section: BSCS F-17 - C
Light:: Lecture 6 Assignment Name: Hazrat Ullah Roll No: 170387 Section: BSCS F-17 - C
Light:: Lecture 6 Assignment Name: Hazrat Ullah Roll No: 170387 Section: BSCS F-17 - C
Light:
Visible light is in the 400 nm – 700 nm range of electromagnetic spectrum.
Color Fundamental:
Colors are seen as variable combinations of the primary color s of light: red (R), green
(G), and blue (B). The primary colors can be mixed to produce the secondary colors:
magenta (red+blue), cyan (green+blue), and yellow (red+green). Mixing the three
primaries, or a secondary with its opposite primary color, produces white light.
RGB colors are used for color TV, monitors, and video cameras.
However, the primary colors of pigments are cyan (C), magenta (M), and yellow (Y),
and the secondary colors are red, green, and blue. A proper combination of the three
pigment primaries, or a secondary with its opposite primary, produces black.
Color characteristics
The characteristics used to distinguish one color from another are:
• Brightness: means the amount of intensity (i.e. color level).
• Hue: represents dominant color as perceived by an observer.
• Saturation: refers to the amount of white light mixed with a hue.
where, all color values have been normalized to the range [0, 1].
U=B-Y
V=R-Y
U = 0.492 (B - Y)
V = 0.877 (R - Y)
Cb = (B - Y) / 1.772 + 0.5
Cr = (R - Y) / 1.402 + 0.5
• The chrominance values in YCbCr are always in the range of 0 to 1.
• YCbCr is used in JPEG and MPEG.
YIQ Color Model
Summary
• Color images are encoded as triplets of values.
• RGB is an additive color model that is used for light-emitting devices, e.g.,
CRT displays
•
CMY is a subtractive model that is used often for printers
• Two common color models in imaging are RGB and CMY, two common color
models in video are YUV and YIQ.
• YUV uses properties of the human eye to prioritize information. Y is the black
and white (luminance) image, U and V are the color difference (chrominance)
images. YIQ uses similar idea.
• Besides the hardware-oriented color models (i.e., RGB, CMY, YUV, YIQ),
HSB (Hue, Saturation, and Brightness) and HLS (Hue, Lightness, and
Saturation) are also commonly used.