SlideShare a Scribd company logo
Color Image Processing
Subject: DIP
Asst. Prof. M N Sachane
Color Fundamentals
• Color Image Processing is divided into two major areas:
• 1) Full-color processing
• Images are acquired with a full-color sensor, such as a
color TV camera or color scanner
• Used in publishing, visualization, and the Internet
• 2) Pseudo color processing
• Assigning a color to a particular monochrome intensity
or range of intensities
Color Fundamentals
• In 1666, Sir Isaac Newton discovered that when a beam of
sunlight passes through a glass prism, the emerging beam of
light is split into a spectrum of colors ranging from violet at
one end to red at the other.
Color Fundamentals
• Visible light as a narrow band of frequencies in EM
• A body that reflects light that is balanced in all visible
wavelengths appears white
• However, a body that favors reflectance in a limited range
of the visible spectrum exhibits some shades of color
• Green objects reflect wavelength in the 500 nm to 570 nm
range while absorbing most of the energy at other
wavelengths
Color Fundamentals
• If the light is achromatic (void of color), its only
attribute is its intensity, or amount
• Chromatic light spans EM from 380 to 780 nm
• Three basic quantities to describe the quality:
• 1) Radiance is the total amount of energy that
flows from the light source, and it is usually
measured in watts (W)
• 2) Luminance, measured in lumens (lm), gives a
measure of the amount of energy an observer
perceives from a light source.
Color Fundamentals
• For example, light emitted from a source operating in
the far infrared region of the spectrum could have
significant energy (radiance), but an observer would
hardly perceive it; its luminance would be almost
zero
• Brightness is a subjective descriptor that is
practically impossible to measure. It embodies the
achromatic notion of intensity and is one of the key
factors in describing color sensation
Color Fundamentals
• Cones are the sensors in the eye responsible for color
vision. 6 to 7 million cones in the human eye can be
divided into three principle categories: red, green, and blue
Color Fundamentals
• Approximately 65% of all cones are sensitive to red
light, 33% are sensitive to green light, and only about
2% are sensitive to blue (but the blue cones are the
most sensitive)
• According to CIE (International Commission on
Illumination) wavelengths of blue = 435.8 nm, green
= 546.1 nm, and red = 700 nm
Color Fundamentals
Primary color of pigments Color
that subtracts or absorbs a
primary color of light and reflects
or transmits the other two
Color of light: Color of pigments:
R absorb R Cyan
G absorb G Magenta
B absorb B Yellow
Fig: 6.4 Primary & Secondary
Colors of Light & Pigments
Color Fundamentals
• To distinguish one color from another are brightness, hue, and
saturation
• Brightness embodies the achromatic notion of intensity
• Hue is an attribute associated with the dominant
• wavelength in a mixture of light waves. Hue represents dominant
color as perceived by an observer. Thus, when we call an object
red, orange, or yellow, we are referring to its hue
• Saturation refers to the relative purity or the amount of
white light mixed with a hue. The pure spectrum colors are fully
saturated. Colors such as pink and lavender are less saturated,
with the degree of saturation being inversely proportional to the
amount of white light added
Color Fundamentals
• Hue and saturation taken together are called
Chromaticity
• Therefore a color may be characterized by its
brightness and chromaticity
• The amounts of red, green, and blue needed to form
any particular color are called the Tristimulus values
and are denoted, X, Y, and Z, respectively
=> x+y+z=1. Thus, x, y (chromaticity coordinate) is
enough to describe all colors
ZYX
X
x


ZYX
Y
y


ZYX
Z
z


Color Fundamentals
• CIE Chromaticity diagram
For any value of x and y, the
corresponding value of z is obtained by
noting that z = 1-(x+y)
• 62% green, 25% red, and 13% blue
• Pure colors are at boundary which are
fully saturated
• Any point within boundary represents
some mixture of spectrum colors
• Equal energy and equal fractions of the
three primary colors represents white
light
• The saturation at the point of equal
energy is zero
• Chromaticity diagram is useful for color
mixing
• By additivity of
colors:
Any color inside the
triangle can be
produced by
combinations of the
three initial colors
• RGB gamut of
Monitors
• Color gamut of
printers
Color Fundamentals
• Printing gamut is irregular because color
printing is a combination of additive and
subtractive color mixing, a process that is
much more difficult to control than that of
displaying colors on a monitor, which is based
on the addition of three highly controllable
light primaries
Color Models
• Also known as color space or color system
• Purpose is to facilitate the specification of colors in some
standard, generally accepted way.
• Oriented either toward hardware (such as monitors and printers)
or toward applications (color graphics for animation)
• Hardware oriented models most commonly used in practices are
the RGB model for color monitors or color
video cameras, CMY and CMYK models for color printing, and
the HSI model, which corresponds closely with the way humans
describe and interpret color.
• HSI model also has the advantage that it decouples the color and
gray-scale information in an image
RGB Color Models
• Each color appears in its primary spectral components of red,
green, and blue.
• Model based on a Cartesian coordinate system
RGB Color Models
• RGB primary values are at three corners; the secondary colors
cyan, magenta, and yellow are at the other corners; black is at
the origin; and white is at the corner.
• In this model, the gray scale (points of equal RGB values)
extends from black to white along the line joining these two
points.
• The different colors in this model are points on or inside the
cube, and are defined by vectors extending from the origin.
• RGB images consist three images (R, G, and B planes)
• When fed into an RGB monitor, these three images combine on
the screen to produce a composite color image.
RGB Color Models
• Number of bits used to represent each pixel in RGB space is called the
pixel depth
• RGB image has 24 bit pixel depth (R, G, B) = (8 bits, 8 bits, 8 bits)
• True color or full color image is a 24 bit RGB image.
• Total colors in 24-bit image is (2) ^8^3 = 16,777,216
RGB Color Models
RGB Color Models
• Many systems in use today are limited to 256 colors
• Many applications require few colors only
• Given the variety of systems in current use, it is of considerable
interest to have subset of colors that are likely to be reproduced
faithfully, this subset of colors are called the set of safe RGB
colors, or the set of all-systems-safe colors
• In internet applications, they are called safe Web colors or safe
browser colors
• On the assumption that 256 colors is the minimum number of
colors that can be reproduced faithfully
• Forty of these 256 colors are known to be processed differently
by various operating systems
RGB Color Models
CMY and CMYK Color Models
• CMY are the secondary colors of light, or, alternatively, the
primary colors of pigments.
• For example, when a surface coated with cyan pigment is
illuminated with white light, no red light is reflected from
the surface because cyan subtracts red light from reflected
white light.
• Color printers and copiers require CMY data input or
perform RGB to CMY conversion internally.
































B
G
R
Y
M
C
1
1
1
CMY and CMYK Color Models
• Equal amounts of the pigment primaries, cyan, magenta,
and yellow should produce black.
• In practice, combining these colors for printing produces a
muddy-looking black
• So, in order to produce true black, a fourth color, black, is
added, giving rise to the CMYK color model.
HSI Color Model
• Unfortunately, the RGB, CMY, and other similar color
models are not well suited for describing colors in terms
that are practical for human interpretation.
• For example, one does not refer to the color of an
automobile by giving the percentage of the primaries
composing its color.
• We do not think of color images as being composed of
three primary images that combine to form that single image
• When human view a color object, we describe it by its hue,
saturation, and brightness
HSI Color Model
– Hue : color attribute
– Saturation: purity of color (white->0, primary color->1)
– Brightness: achromatic notion of intensity
HSI Color Model
Converting from RGB to HSI
Converting from HSI to RGB
Converting from HSI to RGB
Converting from HSI to RGB
HSI Color Model
• HSI (Hue, saturation, intensity) color model,
decouples the intensity component from the color-
carrying information (hue and saturation) in a color
image.
HSI Color Model
Pseudo color Image Processing
• Pseudo color Image Processing
• Pseudo color (false color) image processing consists of
assigning colors to gray values based on a specified
criterion.
• It is different than the process associated with the color
images
• Principal use of pseudo color is for human visualization and
interpretation of gray scale events in an image or sequence
of images
• Two methods for pseudo color image processing:
• 1) Intensity Slicing
• 2) Intensity to Color Transformations
Intensity Slicing
• Also called density slicing and piece wise linear function
• If an image is interpreted as a 3-D function, the method can be
viewed as one of placing planes parallel to the coordinate
plane of the image; each plane then “slices” of the function in
the area of intersection
Pseudo Image Processing
Intensity Slicing
• Pseudo Image Processing
Intensity Slicing
Intensity Slicing
Intensity Slicing
Intensity to Color Transformations
• Achieving a wider range of pseudo color enhancement
results than simple slicing technique
• Idea underlying this approach is to perform three
independent transformations on the intensity of any input
pixel
• Three results are then fed separately into the red, green,
and blue channels of a color television monitor
• This produces a composite image whose color content is
modulated by the nature of the transformation functions
• Not the functions of position
• Nonlinear function
Intensity to Color Transformations
Intensity to Color Transformations
Intensity to Color Transformations
Intensity to Color Transformations
Full-Color Image Processing
• Two categories:
–Process each component individually
and then form a composite processed
color image from the components.
–Work with color pixels directly. In RGB
system, each color point can be
interpreted as a vector.
Full-Color Image Processing
• A pixel at ( x, y) is a vector in the color space
– RGB color space
– c.f. gray-scale image
– f( x, y) = I( x, y)











),(
),(
),(
),(
yxB
yxG
yxR
yxc
Full-Color Image Processing
Color transformation-Formulation
• Similar to gray scale transformation
– g( x, y)=T[f ( x,y)]
• Color transformation
g( x, y) f ( x, y)
nirrrTs nii ,...,2,1,),...,,( 21 
s1
s2
…
sn
f1
f2
…
fn
T1
T2
…
Tn
Color transformation-Formulation
Color transformation-Formulation
Color transformation-Formulation
Color Complements
• The hues opposite to one another on the Color Circle are
called Complements.
• Color Complement transformation is equivalent to image
negative in Grayscale images.
• Color Complements
Color Slicing
• Highlighting a specific range of colors in an image is useful for
separating objects from their surroundings.
• Display the colors of interest so that they are distinguished from
background.
• One way to slice a color image is to map the color outside some
range of interest to a non prominent neutral color.
Histogram Processing
• Equalized the histogram of each component will
results in error color.
• Spread the color intensity (I) uniformly, leaving the
color themselves (hues) unchanged.
• Equalizating the intensity histogram affects the
relative appearance of colors in an image.
• Increasing the image’s saturation component after the
intensity histogram equalization.
Histogram Processing
• Color images are composed of
multiple components,
however it is not suitable to
process each plane
independently in case of
histogram equalization. This
results in erroneous color.
• A more logical approach is to
spread the color intensities
uniformly, leaving the colors
themselves( hue, saturation)
unchanged.
• HSI approach is ideally suited
to this type of approach.
Any Question ?
The End

More Related Content

What's hot

Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Rgb and cmy color model
Rgb and cmy color modelRgb and cmy color model
Rgb and cmy color model
University of Potsdam
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
Poonam Seth
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
anam singla
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
A B Shinde
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
A B Shinde
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
asodariyabhavesh
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
Mariashoukat1206
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTES
Ezhilya venkat
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
asodariyabhavesh
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processing
Aryan Shivhare
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
University of Potsdam
 
color image processing
color image processingcolor image processing
color image processing
HemanthvenkataSaiA
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
Cristina Pérez Benito
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
Suhaila Afzana
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
Kalyan Acharjya
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
Amnaakhaan
 
Fundamental steps in image processing
Fundamental steps in image processingFundamental steps in image processing
Fundamental steps in image processing
PremaPRC211300301103
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 

What's hot (20)

Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Rgb and cmy color model
Rgb and cmy color modelRgb and cmy color model
Rgb and cmy color model
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTES
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processing
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
color image processing
color image processingcolor image processing
color image processing
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
Fundamental steps in image processing
Fundamental steps in image processingFundamental steps in image processing
Fundamental steps in image processing
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 

Similar to Color image processing

Computer science Color image processing.pdf
Computer science Color image processing.pdfComputer science Color image processing.pdf
Computer science Color image processing.pdf
SFASEEHM
 
Color Models.pptx
Color Models.pptxColor Models.pptx
Color Models.pptx
ssuser9203ca
 
Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)
Daroko blog(www.professionalbloggertricks.com)
 
Color image processing.ppt
Color image processing.pptColor image processing.ppt
Color image processing.ppt
Papajuvvanapudi
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
dhruv141293
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
Vijay Kumar
 
Color models
Color modelsColor models
Color models
Haitham Ahmed
 
Compututer Graphics - Color Modeling And Rendering
Compututer Graphics - Color Modeling And RenderingCompututer Graphics - Color Modeling And Rendering
Compututer Graphics - Color Modeling And Rendering
Prince Soni
 
Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing ppt
Mvidhya9
 
Colour%20Model%20new.pptx
Colour%20Model%20new.pptxColour%20Model%20new.pptx
Colour%20Model%20new.pptx
ShreyasS211082
 
Color models
Color modelsColor models
Color models
Rakesh Pandey
 
Colormodels
ColormodelsColormodels
Colormodels
Bhavik Vashi
 
Color image processing
Color image processingColor image processing
Color image processing
rmsurya
 
CG_U4_M1.pptx
CG_U4_M1.pptxCG_U4_M1.pptx
CG_U4_M1.pptx
ssuser255bf1
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
RANJITHA58
 
10. color-texture.pptx
10. color-texture.pptx10. color-texture.pptx
10. color-texture.pptx
KimFrancesHerrera1
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
EveCarolino
 
Digital image processing. PPT
Digital image processing. PPTDigital image processing. PPT
Digital image processing. PPT
anushuyamurugan27
 
About Color
About ColorAbout Color
About Color
Naushad Thotad
 
dip.pptx
dip.pptxdip.pptx
dip.pptx
SabthamiS1
 

Similar to Color image processing (20)

Computer science Color image processing.pdf
Computer science Color image processing.pdfComputer science Color image processing.pdf
Computer science Color image processing.pdf
 
Color Models.pptx
Color Models.pptxColor Models.pptx
Color Models.pptx
 
Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)
 
Color image processing.ppt
Color image processing.pptColor image processing.ppt
Color image processing.ppt
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
 
Color models
Color modelsColor models
Color models
 
Compututer Graphics - Color Modeling And Rendering
Compututer Graphics - Color Modeling And RenderingCompututer Graphics - Color Modeling And Rendering
Compututer Graphics - Color Modeling And Rendering
 
Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing ppt
 
Colour%20Model%20new.pptx
Colour%20Model%20new.pptxColour%20Model%20new.pptx
Colour%20Model%20new.pptx
 
Color models
Color modelsColor models
Color models
 
Colormodels
ColormodelsColormodels
Colormodels
 
Color image processing
Color image processingColor image processing
Color image processing
 
CG_U4_M1.pptx
CG_U4_M1.pptxCG_U4_M1.pptx
CG_U4_M1.pptx
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
 
10. color-texture.pptx
10. color-texture.pptx10. color-texture.pptx
10. color-texture.pptx
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
 
Digital image processing. PPT
Digital image processing. PPTDigital image processing. PPT
Digital image processing. PPT
 
About Color
About ColorAbout Color
About Color
 
dip.pptx
dip.pptxdip.pptx
dip.pptx
 

Recently uploaded

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 

Recently uploaded (20)

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 

Color image processing

  • 1. Color Image Processing Subject: DIP Asst. Prof. M N Sachane
  • 2. Color Fundamentals • Color Image Processing is divided into two major areas: • 1) Full-color processing • Images are acquired with a full-color sensor, such as a color TV camera or color scanner • Used in publishing, visualization, and the Internet • 2) Pseudo color processing • Assigning a color to a particular monochrome intensity or range of intensities
  • 3. Color Fundamentals • In 1666, Sir Isaac Newton discovered that when a beam of sunlight passes through a glass prism, the emerging beam of light is split into a spectrum of colors ranging from violet at one end to red at the other.
  • 4. Color Fundamentals • Visible light as a narrow band of frequencies in EM • A body that reflects light that is balanced in all visible wavelengths appears white • However, a body that favors reflectance in a limited range of the visible spectrum exhibits some shades of color • Green objects reflect wavelength in the 500 nm to 570 nm range while absorbing most of the energy at other wavelengths
  • 5. Color Fundamentals • If the light is achromatic (void of color), its only attribute is its intensity, or amount • Chromatic light spans EM from 380 to 780 nm • Three basic quantities to describe the quality: • 1) Radiance is the total amount of energy that flows from the light source, and it is usually measured in watts (W) • 2) Luminance, measured in lumens (lm), gives a measure of the amount of energy an observer perceives from a light source.
  • 6. Color Fundamentals • For example, light emitted from a source operating in the far infrared region of the spectrum could have significant energy (radiance), but an observer would hardly perceive it; its luminance would be almost zero • Brightness is a subjective descriptor that is practically impossible to measure. It embodies the achromatic notion of intensity and is one of the key factors in describing color sensation
  • 7. Color Fundamentals • Cones are the sensors in the eye responsible for color vision. 6 to 7 million cones in the human eye can be divided into three principle categories: red, green, and blue
  • 8. Color Fundamentals • Approximately 65% of all cones are sensitive to red light, 33% are sensitive to green light, and only about 2% are sensitive to blue (but the blue cones are the most sensitive) • According to CIE (International Commission on Illumination) wavelengths of blue = 435.8 nm, green = 546.1 nm, and red = 700 nm
  • 9. Color Fundamentals Primary color of pigments Color that subtracts or absorbs a primary color of light and reflects or transmits the other two Color of light: Color of pigments: R absorb R Cyan G absorb G Magenta B absorb B Yellow Fig: 6.4 Primary & Secondary Colors of Light & Pigments
  • 10. Color Fundamentals • To distinguish one color from another are brightness, hue, and saturation • Brightness embodies the achromatic notion of intensity • Hue is an attribute associated with the dominant • wavelength in a mixture of light waves. Hue represents dominant color as perceived by an observer. Thus, when we call an object red, orange, or yellow, we are referring to its hue • Saturation refers to the relative purity or the amount of white light mixed with a hue. The pure spectrum colors are fully saturated. Colors such as pink and lavender are less saturated, with the degree of saturation being inversely proportional to the amount of white light added
  • 11. Color Fundamentals • Hue and saturation taken together are called Chromaticity • Therefore a color may be characterized by its brightness and chromaticity • The amounts of red, green, and blue needed to form any particular color are called the Tristimulus values and are denoted, X, Y, and Z, respectively => x+y+z=1. Thus, x, y (chromaticity coordinate) is enough to describe all colors ZYX X x   ZYX Y y   ZYX Z z  
  • 12. Color Fundamentals • CIE Chromaticity diagram For any value of x and y, the corresponding value of z is obtained by noting that z = 1-(x+y) • 62% green, 25% red, and 13% blue • Pure colors are at boundary which are fully saturated • Any point within boundary represents some mixture of spectrum colors • Equal energy and equal fractions of the three primary colors represents white light • The saturation at the point of equal energy is zero • Chromaticity diagram is useful for color mixing
  • 13. • By additivity of colors: Any color inside the triangle can be produced by combinations of the three initial colors • RGB gamut of Monitors • Color gamut of printers
  • 14. Color Fundamentals • Printing gamut is irregular because color printing is a combination of additive and subtractive color mixing, a process that is much more difficult to control than that of displaying colors on a monitor, which is based on the addition of three highly controllable light primaries
  • 15. Color Models • Also known as color space or color system • Purpose is to facilitate the specification of colors in some standard, generally accepted way. • Oriented either toward hardware (such as monitors and printers) or toward applications (color graphics for animation) • Hardware oriented models most commonly used in practices are the RGB model for color monitors or color video cameras, CMY and CMYK models for color printing, and the HSI model, which corresponds closely with the way humans describe and interpret color. • HSI model also has the advantage that it decouples the color and gray-scale information in an image
  • 16. RGB Color Models • Each color appears in its primary spectral components of red, green, and blue. • Model based on a Cartesian coordinate system
  • 17. RGB Color Models • RGB primary values are at three corners; the secondary colors cyan, magenta, and yellow are at the other corners; black is at the origin; and white is at the corner. • In this model, the gray scale (points of equal RGB values) extends from black to white along the line joining these two points. • The different colors in this model are points on or inside the cube, and are defined by vectors extending from the origin. • RGB images consist three images (R, G, and B planes) • When fed into an RGB monitor, these three images combine on the screen to produce a composite color image.
  • 18. RGB Color Models • Number of bits used to represent each pixel in RGB space is called the pixel depth • RGB image has 24 bit pixel depth (R, G, B) = (8 bits, 8 bits, 8 bits) • True color or full color image is a 24 bit RGB image. • Total colors in 24-bit image is (2) ^8^3 = 16,777,216
  • 20. RGB Color Models • Many systems in use today are limited to 256 colors • Many applications require few colors only • Given the variety of systems in current use, it is of considerable interest to have subset of colors that are likely to be reproduced faithfully, this subset of colors are called the set of safe RGB colors, or the set of all-systems-safe colors • In internet applications, they are called safe Web colors or safe browser colors • On the assumption that 256 colors is the minimum number of colors that can be reproduced faithfully • Forty of these 256 colors are known to be processed differently by various operating systems
  • 22. CMY and CMYK Color Models • CMY are the secondary colors of light, or, alternatively, the primary colors of pigments. • For example, when a surface coated with cyan pigment is illuminated with white light, no red light is reflected from the surface because cyan subtracts red light from reflected white light. • Color printers and copiers require CMY data input or perform RGB to CMY conversion internally.                                 B G R Y M C 1 1 1
  • 23. CMY and CMYK Color Models • Equal amounts of the pigment primaries, cyan, magenta, and yellow should produce black. • In practice, combining these colors for printing produces a muddy-looking black • So, in order to produce true black, a fourth color, black, is added, giving rise to the CMYK color model.
  • 24. HSI Color Model • Unfortunately, the RGB, CMY, and other similar color models are not well suited for describing colors in terms that are practical for human interpretation. • For example, one does not refer to the color of an automobile by giving the percentage of the primaries composing its color. • We do not think of color images as being composed of three primary images that combine to form that single image • When human view a color object, we describe it by its hue, saturation, and brightness
  • 25. HSI Color Model – Hue : color attribute – Saturation: purity of color (white->0, primary color->1) – Brightness: achromatic notion of intensity
  • 27.
  • 32. HSI Color Model • HSI (Hue, saturation, intensity) color model, decouples the intensity component from the color- carrying information (hue and saturation) in a color image.
  • 34. Pseudo color Image Processing • Pseudo color Image Processing • Pseudo color (false color) image processing consists of assigning colors to gray values based on a specified criterion. • It is different than the process associated with the color images • Principal use of pseudo color is for human visualization and interpretation of gray scale events in an image or sequence of images • Two methods for pseudo color image processing: • 1) Intensity Slicing • 2) Intensity to Color Transformations
  • 35. Intensity Slicing • Also called density slicing and piece wise linear function • If an image is interpreted as a 3-D function, the method can be viewed as one of placing planes parallel to the coordinate plane of the image; each plane then “slices” of the function in the area of intersection Pseudo Image Processing
  • 36. Intensity Slicing • Pseudo Image Processing
  • 40. Intensity to Color Transformations • Achieving a wider range of pseudo color enhancement results than simple slicing technique • Idea underlying this approach is to perform three independent transformations on the intensity of any input pixel • Three results are then fed separately into the red, green, and blue channels of a color television monitor • This produces a composite image whose color content is modulated by the nature of the transformation functions • Not the functions of position • Nonlinear function
  • 41. Intensity to Color Transformations
  • 42. Intensity to Color Transformations
  • 43. Intensity to Color Transformations
  • 44. Intensity to Color Transformations
  • 45.
  • 46.
  • 47. Full-Color Image Processing • Two categories: –Process each component individually and then form a composite processed color image from the components. –Work with color pixels directly. In RGB system, each color point can be interpreted as a vector.
  • 48. Full-Color Image Processing • A pixel at ( x, y) is a vector in the color space – RGB color space – c.f. gray-scale image – f( x, y) = I( x, y)            ),( ),( ),( ),( yxB yxG yxR yxc
  • 50. Color transformation-Formulation • Similar to gray scale transformation – g( x, y)=T[f ( x,y)] • Color transformation g( x, y) f ( x, y) nirrrTs nii ,...,2,1,),...,,( 21  s1 s2 … sn f1 f2 … fn T1 T2 … Tn
  • 54. Color Complements • The hues opposite to one another on the Color Circle are called Complements. • Color Complement transformation is equivalent to image negative in Grayscale images.
  • 56. Color Slicing • Highlighting a specific range of colors in an image is useful for separating objects from their surroundings. • Display the colors of interest so that they are distinguished from background. • One way to slice a color image is to map the color outside some range of interest to a non prominent neutral color.
  • 57. Histogram Processing • Equalized the histogram of each component will results in error color. • Spread the color intensity (I) uniformly, leaving the color themselves (hues) unchanged. • Equalizating the intensity histogram affects the relative appearance of colors in an image. • Increasing the image’s saturation component after the intensity histogram equalization.
  • 58. Histogram Processing • Color images are composed of multiple components, however it is not suitable to process each plane independently in case of histogram equalization. This results in erroneous color. • A more logical approach is to spread the color intensities uniformly, leaving the colors themselves( hue, saturation) unchanged. • HSI approach is ideally suited to this type of approach.