color image processing - university of california, san diego · full-color image processing cse...
TRANSCRIPT
Color Image Processing
Image Processing
CSE 166
Lecture 9
Announcements
• Assignment 3 is due today, 11:59 PM
• Midterm exam is on May 6
• Reading
– Sections 7.1-7.6: Color Image Processing
CSE 166, Spring 2019 4
Electromagnetic spectrum
CSE 166, Spring 2019 5
Separating visible light
CSE 166, Spring 2019 6
Human eye cones
CSE 166, Spring 2019 7
Mixing light
CSE 166, Spring 2019
Light
Pigment
Primary and secondary colors are swapped
Note that green, cyan, and blue are not accurate colors in the book. More
accurate colors below.
8
BLUE
GREEN
RED
CYAN
MAGENTA
YELLOW
RGB color model
CSE 166, Spring 2019
RGB coordinates
9
RGB color cube
XYZ color model andchromaticity coordinates
CSE 166, Spring 2019
Not actual colors
locations; just gives an idea
10
Color gamuts
CSE 166, Spring 2019
Averageperson
Computermonitor
Printer
11
HSI color model:Relationship to RGB color model
CSE 166, Spring 2019
All colors with cyan
hue
RGB color cube rotated such that line joining black and white
(intensity axis) is vertical
12
HSI color model
CSE 166, Spring 2019
RGB color cube rotated such that
observer is on intensity axis, beyond white looking towards
black
Shape does not matter, only angle from red13
RGB color cube
HSI intensity axis
HSI color model
CSE 166, Spring 2019
HS-plane is orthogonal to intensity axis
14
CSE 166, Spring 2019
HSI
RGB
CMYK
15
Color models
CMY
Intensity slicing
CSE 166, Spring 2019 16
Grayscale to 2 colors
Intensity slicing
CSE 166, Spring 2019
Grayscale to 2 colors
17
Intensity slicing
CSE 166, Spring 2019
Grayscale to 8 colors
18
Intensity slicing
CSE 166, Spring 2019
Grayscale to 256 colors
Colorbar
19
Intensity to color transformations
CSE 166, Spring 2019
Grayscale input image
RGBoutput image
20
Intensity to color transformations
CSE 166, Spring 2019
X-ray grayscale input image
Misses explosive
RGB output images
Without explosive
With explosive
21
Intensity to color transformations
CSE 166, Spring 2019
Multiple grayscale
input images
SingleRGB
output image
22
Intensity to color transformations
Near infrared (NIR)
Red (R)
NIR,G,B as RGB R,NIR,B as RGB23
Green (G) Blue (B)
Multiple satellite
grayscale input
images
Output RGB imagesCSE 166, Spring 2019
Intensity to color transformations
CSE 166, Spring 2019
SingleRGB
output image
Multiple grayscale input images,
some outside of visible spectrum
Close up
Physical and chemical
processes likely to affect sensor
response
24
Full-color image processing
CSE 166, Spring 2019
Spatial filtering: process each channel independently
25
Full-color image processing
CSE 166, Spring 2019
All RGB channels
HSI intensity channel only
Spatial filtering: image smoothing
26
Difference
Full-color image processing
CSE 166, Spring 2019
All RGB channels
HSI intensity channel only
Spatial filtering: image sharpening
27
Difference
Full-color image processing
CSE 166, Spring 2019
Histogram equalization: do not process each channel independently
1. RGB to HSI2. Histogram
equalize HSI intensity
3. HSI to RGB
28
4. HSI saturation adjustment
Next Lecture
• Midterm exam review
CSE 166, Spring 2019 29