SlideShare a Scribd company logo
1 of 34
Download to read offline
Digital Image
Processing
Unit-1 DIGITAL IMAGE
FUNDAMENTALS
IMAGE ENHANCEMENT
SPATIAL AVERAGING
Image Averaging
• A noisy image:
)
,
(
)
,
(
)
,
( y
x
n
y
x
f
y
x
g +
=
• Averaging K different noisy images:

=
=
M
i
i y
x
g
K
y
x
g
1
)
,
(
1
)
,
(
Image Averaging
• As K increases, the variability of the pixel
values at each location decreases.
– This means that g(x,y) approaches f(x,y) as the
number of noisy images used in the averaging
process increases.
• Registering(aligned) of the images is
necessary to avoid blurring in the output
image.
Image Enhancement in the
Spatial Domain
Smoothing Filters
• Median filtering (nonlinear)
– Used primarily for noise reduction (eliminates
isolated spikes)
– The gray level of each pixel is replaced by the
median of the gray levels in the neighborhood of
that pixel (instead of by the average as before).
Chapter 3
Image Enhancement in the
Spatial Domain
Median Filter
a) Image with added salt-and-pepper noise,
the probability for salt = probability
for pepper = 0.10
b) After median filtering with a 3x3
window,all the noise is not removed
Median Filter
c) After median filtering with a 5x5 window, all the noise is
removed, but the image is blurry acquiring the “painted”
effect
• The contra-harmonic mean filter works well for
images containing salt OR pepper type noise,
depending on the filter order, R:
• For negative values of R, it eliminates salt-type
noise, while for positive values of R, it eliminates
pepper-type noise
• The geometric mean filter works best with
Gaussian noise, and retains detail information
better than an arithmetic mean filter
• It is defined as the product of the pixel values
within the window, raised to the 1/(N*N) power:
• The harmonic mean filter fails with pepper
noise, but works well for salt noise
• It is defined as follows:
• This filter also works with Gaussian noise,
retaining detail information better than the
arithmetic mean filter
• The Yp mean filter is defined as follows:
• This filter removes salt noise for negative values
of P, and pepper noise for positive values of P
HOMOMORPHIC
FILTERING
• It simultaneously normalizes the brightness
across an image and increases contrast.
• Filtering is used to remove multiplicative noise
• Illumination and reflectance are not separable
• Illumination and reflectance combine
multiplicatively
• Components are made additive by taking the
logarithm of the image intensity
• Multiplicative components of the image can be separated linearly
in the frequency domain
• To make the illumination of an image more even, the high-
frequency components are increased and low-frequency
components are decreased
• High-frequency components are assumed to represent mostly the
reflectance in the scene (the amount of light reflected off the
object in the scene)
• Low-frequency components are assumed to represent mostly the
illumination in the scene
• High-pass filtering is used to suppress low frequencies and amplify
high frequencies, in the log-intensity domain
• The illumination component tends to vary slowly across
the image.
• The reflectance tends to vary rapidly, particularly at
junctions of dissimilar objects.
• Therefore, by applying a frequency domain filter of the
form we can reduce intensity variation across the
image while highlighting detail.
Homomorphic filtering: PET
example
Color
Image Enhancement
Enhancement of Color
Images
• Gray scale transforms and histogram
modification techniques can be applied by
treating a color image as three gray images
• Care must be taken in how this is done to
avoid color shifts
✓ Histogram modification can be performed on
color images, but doing it on each color band
separately can create relative color changes
✓ The relative color can be retained by applying
the gray scale modification technique to one of
the color bands, and then using the ratios from
the original image to find the other values
Histogram Equalization of Color Images
a) Original poor contrast image b) Histogram equalization based on
the red color band
Histogram Equalization of Color Images (contd)
c) Histogram equalization based on
the green color band
d) Histogram equalization based on
the blue color band
Note: In this case the red band gives the best results
This will depend on the image and the desired result
✓ Typically the most important color band is
selected, and this choice is very much
application-specific and will not always provide
us with the desired result
✓ Often, we really want to apply the gray scale
modification method to the image brightness
only, even with color images
✓ Histogram modification on color images can be
performed in the following ways:
• Retain the RGB ratios and perform the
modification on one band only, then use the
ratios to get the other two bands’ values, or
• Perform a color transform, such as HSL, do the
modification on the lightness (brightness band),
then do the inverse color transform

More Related Content

Similar to ModuleII091.pdf

Digital image processing techniques
Digital image processing techniquesDigital image processing techniques
Digital image processing techniquesShab Bi
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lectureISRAR HUSSAIN
 
Image enhancement
Image enhancementImage enhancement
Image enhancementKuppusamy P
 
Image enhancement in spatial domain.ppt
Image enhancement in spatial domain.pptImage enhancement in spatial domain.ppt
Image enhancement in spatial domain.pptpravin patil
 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxNiladriBhattacharjee10
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1shabanam tamboli
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptShabanamTamboli1
 
Digital radiographic image enhancement for improved visualization
Digital radiographic image enhancement for improved visualizationDigital radiographic image enhancement for improved visualization
Digital radiographic image enhancement for improved visualizationNisar Ahmed Rana
 
Histogram Based Contrast Enhn
Histogram Based Contrast EnhnHistogram Based Contrast Enhn
Histogram Based Contrast EnhnTulsi Chandan
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.pptAJAYMALIK97
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Image Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingImage Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingSadia Zafar
 
ozdogan1_lcluc_8-2010_training_0.pdf
ozdogan1_lcluc_8-2010_training_0.pdfozdogan1_lcluc_8-2010_training_0.pdf
ozdogan1_lcluc_8-2010_training_0.pdfchantey2303
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 
Removal of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in imagesRemoval of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in imagesMurali Siva
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reductionJksuryawanshi
 

Similar to ModuleII091.pdf (20)

Digital image processing techniques
Digital image processing techniquesDigital image processing techniques
Digital image processing techniques
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image enhancement in spatial domain.ppt
Image enhancement in spatial domain.pptImage enhancement in spatial domain.ppt
Image enhancement in spatial domain.ppt
 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptx
 
Histogram Equalization.pdf
Histogram Equalization.pdfHistogram Equalization.pdf
Histogram Equalization.pdf
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
 
Digital radiographic image enhancement for improved visualization
Digital radiographic image enhancement for improved visualizationDigital radiographic image enhancement for improved visualization
Digital radiographic image enhancement for improved visualization
 
Histogram Based Contrast Enhn
Histogram Based Contrast EnhnHistogram Based Contrast Enhn
Histogram Based Contrast Enhn
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt
 
aip.pptx
aip.pptxaip.pptx
aip.pptx
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Image Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingImage Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image Processing
 
ozdogan1_lcluc_8-2010_training_0.pdf
ozdogan1_lcluc_8-2010_training_0.pdfozdogan1_lcluc_8-2010_training_0.pdf
ozdogan1_lcluc_8-2010_training_0.pdf
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
Removal of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in imagesRemoval of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in images
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reduction
 
IJ-M&M08.ppt
IJ-M&M08.pptIJ-M&M08.ppt
IJ-M&M08.ppt
 

More from SamrajECE

reservation-policy-required-followed for admission
reservation-policy-required-followed for admissionreservation-policy-required-followed for admission
reservation-policy-required-followed for admissionSamrajECE
 
Module-V 096.pdf
Module-V 096.pdfModule-V 096.pdf
Module-V 096.pdfSamrajECE
 
Module-IV 095.pdf
Module-IV 095.pdfModule-IV 095.pdf
Module-IV 095.pdfSamrajECE
 
Module-IV 094.pdf
Module-IV 094.pdfModule-IV 094.pdf
Module-IV 094.pdfSamrajECE
 
Module-IV 093.pdf
Module-IV 093.pdfModule-IV 093.pdf
Module-IV 093.pdfSamrajECE
 
ModuleII090.pdf
ModuleII090.pdfModuleII090.pdf
ModuleII090.pdfSamrajECE
 

More from SamrajECE (7)

reservation-policy-required-followed for admission
reservation-policy-required-followed for admissionreservation-policy-required-followed for admission
reservation-policy-required-followed for admission
 
M4L12.ppt
M4L12.pptM4L12.ppt
M4L12.ppt
 
Module-V 096.pdf
Module-V 096.pdfModule-V 096.pdf
Module-V 096.pdf
 
Module-IV 095.pdf
Module-IV 095.pdfModule-IV 095.pdf
Module-IV 095.pdf
 
Module-IV 094.pdf
Module-IV 094.pdfModule-IV 094.pdf
Module-IV 094.pdf
 
Module-IV 093.pdf
Module-IV 093.pdfModule-IV 093.pdf
Module-IV 093.pdf
 
ModuleII090.pdf
ModuleII090.pdfModuleII090.pdf
ModuleII090.pdf
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 

ModuleII091.pdf

  • 3. Image Averaging • A noisy image: ) , ( ) , ( ) , ( y x n y x f y x g + = • Averaging K different noisy images:  = = M i i y x g K y x g 1 ) , ( 1 ) , (
  • 4. Image Averaging • As K increases, the variability of the pixel values at each location decreases. – This means that g(x,y) approaches f(x,y) as the number of noisy images used in the averaging process increases. • Registering(aligned) of the images is necessary to avoid blurring in the output image.
  • 5. Image Enhancement in the Spatial Domain
  • 6.
  • 7.
  • 8.
  • 9. Smoothing Filters • Median filtering (nonlinear) – Used primarily for noise reduction (eliminates isolated spikes) – The gray level of each pixel is replaced by the median of the gray levels in the neighborhood of that pixel (instead of by the average as before).
  • 10. Chapter 3 Image Enhancement in the Spatial Domain
  • 11. Median Filter a) Image with added salt-and-pepper noise, the probability for salt = probability for pepper = 0.10 b) After median filtering with a 3x3 window,all the noise is not removed
  • 12. Median Filter c) After median filtering with a 5x5 window, all the noise is removed, but the image is blurry acquiring the “painted” effect
  • 13. • The contra-harmonic mean filter works well for images containing salt OR pepper type noise, depending on the filter order, R: • For negative values of R, it eliminates salt-type noise, while for positive values of R, it eliminates pepper-type noise
  • 14.
  • 15. • The geometric mean filter works best with Gaussian noise, and retains detail information better than an arithmetic mean filter • It is defined as the product of the pixel values within the window, raised to the 1/(N*N) power:
  • 16.
  • 17. • The harmonic mean filter fails with pepper noise, but works well for salt noise • It is defined as follows: • This filter also works with Gaussian noise, retaining detail information better than the arithmetic mean filter
  • 18.
  • 19. • The Yp mean filter is defined as follows: • This filter removes salt noise for negative values of P, and pepper noise for positive values of P
  • 20.
  • 22. • It simultaneously normalizes the brightness across an image and increases contrast. • Filtering is used to remove multiplicative noise • Illumination and reflectance are not separable • Illumination and reflectance combine multiplicatively • Components are made additive by taking the logarithm of the image intensity
  • 23. • Multiplicative components of the image can be separated linearly in the frequency domain • To make the illumination of an image more even, the high- frequency components are increased and low-frequency components are decreased • High-frequency components are assumed to represent mostly the reflectance in the scene (the amount of light reflected off the object in the scene) • Low-frequency components are assumed to represent mostly the illumination in the scene • High-pass filtering is used to suppress low frequencies and amplify high frequencies, in the log-intensity domain
  • 24. • The illumination component tends to vary slowly across the image. • The reflectance tends to vary rapidly, particularly at junctions of dissimilar objects. • Therefore, by applying a frequency domain filter of the form we can reduce intensity variation across the image while highlighting detail.
  • 25.
  • 26.
  • 29. Enhancement of Color Images • Gray scale transforms and histogram modification techniques can be applied by treating a color image as three gray images • Care must be taken in how this is done to avoid color shifts
  • 30. ✓ Histogram modification can be performed on color images, but doing it on each color band separately can create relative color changes ✓ The relative color can be retained by applying the gray scale modification technique to one of the color bands, and then using the ratios from the original image to find the other values
  • 31. Histogram Equalization of Color Images a) Original poor contrast image b) Histogram equalization based on the red color band
  • 32. Histogram Equalization of Color Images (contd) c) Histogram equalization based on the green color band d) Histogram equalization based on the blue color band Note: In this case the red band gives the best results This will depend on the image and the desired result
  • 33. ✓ Typically the most important color band is selected, and this choice is very much application-specific and will not always provide us with the desired result ✓ Often, we really want to apply the gray scale modification method to the image brightness only, even with color images
  • 34. ✓ Histogram modification on color images can be performed in the following ways: • Retain the RGB ratios and perform the modification on one band only, then use the ratios to get the other two bands’ values, or • Perform a color transform, such as HSL, do the modification on the lightness (brightness band), then do the inverse color transform