Lec_3_ImPr.pdf

In the name of Allah
the compassionate, the merciful
Digital Image Processing
S. Kasaei
Sharif University of Technology
Room: CE307
E-Mail: [email protected]
Home Page: http://sharif.edu/~ceinfo
http://mehr.sharif.edu/~ipl
http://sharif.edu/~skasaei
Kasaei
٣
Chapter 3
Image Perception
Kasaei
٤
Introduction
„
In presenting the output of an imaging
system to a human observer, it is essential
to consider how it is transformed into
information by the viewer.
„
Understanding of the visual perception
process is important for developing
measures of image fidelity.
Kasaei
٥
Introduction
„
Visual image data represents spatial
distribution of physical quantities (luminance
& spatial frequencies).
„
Perceived information may be presented
by attributes (brightness, color, & edges).
„
The goal is to study how the perceived
information may be represented
quantitatively.
Kasaei
٦
Introduction
Fig. 1: Simplified diagram of a cross section of the human eye.
Kasaei
٧
Introduction
Fig. 2: Cross section of the eye.
Kasaei
٨
Introduction
„
Light is defined as the electromagnetic
radiation that stimulates our vision response.
„
It is expressed as a spectral energy
distribution.
Kasaei
٩
Introduction
Kasaei
Fig. 3: The electromagnetic spectrum.
١٠
Color Representation
Fig. 4: Visible wavelengths.
Kasaei
١١
Introduction
Green
Red
Blue
Fig. 5: Typical relative luminous efficiency function of human eye.
Kasaei
١٢
Introduction
„
The luminance of an object is independent
of the luminance of the surrounding objects.
„
The (apparent) brightness of an object is
the perceived luminance & depends on the
luminance of the surround.
Kasaei
١٣
Introduction
Fig. 6: Simultaneous contrast. Top: Middle squares have equal luminance
but do not appear equally; Bottom: Middle squares appear almost equally
bright, but their luminance are different.
Kasaei
١٤
Introduction
„
The spatial interaction of luminance from an
object & its surround creates a phenomenon
called the match band effect.
„
It shows that brightness is not a monotonic
function of luminance.
Kasaei
١٥
Introduction
(a)
(b)
Fig. 7: Mach band effect. (a) Gray level bar chart; (b) Luminance versus brightness.
Kasaei
١٦
Introduction
„
Measurement of the mach band effect can
be used to estimate the impulse response of
the visual system [h(n)].
„
The negative lobes [in h(n)] indicate that the
neural signal at a given location has been
inhibited by some of the laterally located
receptors.
Kasaei
١٧
MTF of the Visual System
„
A direct measurement of the visual system’s
modulation transfer function (MTF), is possible
by considering a sinusoidal grating of varying
contrast (ratio of the Max to Min intensity) &
spatial frequency.
„
Observation of this Fig. shows the thresholds
of visibility at various frequencies.
Kasaei
١٨
MTF of the Visual System
cpd
Fig. 8: Modulation transfer function (MTF) of the human visual system.
(a) Contrast versus spatial frequency sinusoidal grating; (b) Typical MTF plot.
Kasaei
١٩
MTF of the Visual System
„
Human visual system is most sensitive to midfrequencies (3~10 cycles/degree) & least
sensitive to high frequencies.
„
Contrast sensitivity also depends on
orientation of the grating (max for horizontal &
vertical grating).
Kasaei
٢٠
MTF of the Visual System
„
Angular sensitivity variations are within 3dB
(Max. deviation at 45 degree).
„
Spatial frequency components, separated by
about one octave, can be detected
independently by observers.
„
Thus, visual system contains a number of
independent spatial channels, each tuned to a
different spatial frequency & orientation angle.
Kasaei
٢١
Image Fidelity Criteria
„
There are 2 types of fidelity criteria:
subjective & quantitative.
„
Subjective criteria use rating scales such as
goodness scales & impairment scales.
„
Quantitative criteria includes: average LSE,
MSE, average MS, SNR, PSNR, &
frequency weighted MS.
Kasaei
٢٢
Subjective Criteria
Table 1: Image goodness scales.
Kasaei
٢٣
Subjective Criteria
Table 2: Image impairment scales.
Sk: score,
nk: # observers,
n: # grades.
Kasaei
٢٤
Quantitative Criteria
Kasaei
٢٥
Quantitative Criteria
Kasaei
٢٦
Quantitative Criteria
Kasaei
٢٧
Quantitative Criteria
Kasaei
٢٨
Quantitative Criteria
Kasaei
٢٩
Color Representation
„
Use of color is not only more pleasing but it
also enables us to receive more visual
information.
„
While human can perceive only a few dozen
gray levels, have the ability to distinguish
between thousands of colors.
Kasaei
٣٠
Color Representation
Fig. 9: Visible color spectrum.
Kasaei
٣١
Color Representation
Kasaei
Fig. 10: Visible wavelengths.
٣٢
Color Representation
„
The perceptual attributes of colors are
brightness, hue, & saturation.
„
Brightness presents the perceived
luminance.
„
Hue refers to its “redness”, “greenness”, ...
„
Saturation is that aspect of perception that
varies most strongly as more while light is
added.
Kasaei
٣٣
Color Representation
Fig. 11: Hue representation.
Kasaei
٣٤
Color Representation
Fig. 12: Hue representation.
Kasaei
٣٥
Color Representation
Kasaei
Fig. 13: HSV color model representation.
٣٦
Color Representation
Kasaei
Fig. 14: HSV color model representation.
٣٧
Color Representation
Kasaei
Fig. 15: HSV color model representation.
٣٨
Color Representation
Kasaei
Fig. 16: HSV color model.
٣٩
Color Representation
Fig. 17: HIS color model.
Kasaei
٤٠
Color Representation
Fig. 18: HIS color model.
Kasaei
٤١
Color Representation
Fig. 19: HIS color model.
Kasaei
٤٢
Color Representation
„
For monochromatic light sources,
differences in hues are manifested by the
differences is wavelengths.
„
These definitions are somewhat imprecise.
„
Hue, brightness,& saturation all change
when either the wavelength, the intensity,
the hue, or amount of white light in a color is
changed.
Kasaei
٤٣
Color Representation
„
A human observer perceives color through
the stimuli of 3 different pigmented cones.
Fig. 20: Typical absorption spectra of cons in the retina, as a function of wavelength.
Kasaei
٤٤
Color Representation
Fig. 21: Monitor phosphor.
Kasaei
٤٥
Color Representation
„
A weighted sum of primaries produces a
color that cannot be distinguished by an
observer from the color of the spectrum.
Fig. 22: Additive color model
Kasaei
٤٦
Color Representation
Fig. 23: Primary & secondary colors of light & pigments.
Kasaei
٤٧
Color Representation
Fig. 24: Single chip color CCD.
Kasaei
٤٨
Color Representation
Table 3: Color coordinate systems
[Commission Internationale de L’Eclairage (CIE)].
Kasaei
٤٩
Color Representation
Table 3: Color coordinate systems (Cntd).
Kasaei
٥٠
Color Representation
Table 3: Color coordinate systems (Cntd).
Kasaei
٥١
Color Representation
Table 4: Transformation from NTSC Receiver Primary to other coordinate systems.
Kasaei
٥٢
Color Representation
Kasaei
٥٣
Color Representation
Kasaei
٥٤
Color Representation
Kasaei
٥٥
Color Representation
Fig. 25: CIE XYZ.
Kasaei
٥٦
Color Representation
Fig. 26: CIE XYZ chromaticity diagram.
Kasaei
٥٧
Color Representation
Fig. 27: CIE XYZ chromaticity diagram.
Kasaei
٥٨
Color Representation
Fig. 28: CIE XYZ chromaticity diagram.
Kasaei
٥٩
Color Representation
Fig. 29: CIE XYZ chromaticity diagram.
Kasaei
٦٠
Color Representation
Fig. 30: The RGB safe-color cube.
Kasaei
٦١
Color Representation
Fig. 31: RGB color model.
Kasaei
٦٢
Color Representation
Fig. 32: CIE Lab color models.
Kasaei
٦٣
Color Representation
Fig. 33: color copier.
Kasaei
٦٤
Color Representation
Fig. 34: System overview.
Kasaei
٦٥
Color Representation
Fig. 35: Pseudo color for detection.
Kasaei
٦٦
Color Representation
Fig. 36: Pseudo color example.
Kasaei
٦٧
Color Representation
Fig. 37: Color manipulation.
Kasaei
٦٨
The End