in the name of allah - sharif university of...

77

Upload: others

Post on 06-Apr-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used
Page 2: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

In the name of Allahthe compassionate, the mercifulthe compassionate, the merciful

Page 3: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 3

S. KasaeiSharif University of Technology

Room: CE307

[email protected]: -EHome Page: http://ce.sharif.edu

http://ipl.ce.sharif.eduhttp://sharif.edu/~skasaei

Digital Image ProcessingDigital Image Processing

Page 4: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 4

Chapter 3

Image Perception

Page 5: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 5

Introduction

Page 6: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 6

Introduction

Visible Light Imaging Model.

Page 7: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 7

Introduction

Irradiance Light

Radiance Light

Page 8: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 8

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 perceptionprocess is important for developing measures of image fidelity.

Page 9: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 9

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.

Page 10: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 10

Introduction

Fig. 1: Simplified diagram of a cross section of the human eye.

Page 11: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 11

Introduction

Fig. 2: Cross section of the eye.

Page 12: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 12

Introduction

Color is about spectrum & wavelength.Light is defined as the electromagneticradiation that stimulates our vision response.It consists of an electromagnetic wave, with wavelengths in the range of 380-780 nm, in which the human eye is sensitive.The energy of light is measured in flux, with the unit of watt.It is expressed as a spectral energy distribution.

Page 13: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 13

Introduction

Fig. 3: The electromagnetic spectrum.

Page 14: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 14

Color Representation

Fig. 4: Visible wavelengths.

Page 15: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 15

Introduction

Fig. 5: Typical relative luminous efficiency function of human eye.

Blue

Green

Red

Page 16: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 16

Introduction

The luminance of an object is independentof the luminance of the surrounding objects.

The (apparent) brightness of an object is the perceived luminance & depends on the luminance of the surround.

Page 17: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 17

Introduction

Fig. 6: Simultaneous contrast. Top: Middle squares have equal luminancebut do not appear equally; Bottom: Middle squares appear almost equally bright, but their luminance are different.

Page 18: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 18

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.

Page 19: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 19

Introduction

Fig. 7: Mach band effect. (a) Gray level bar chart; (b) Luminance versus brightness.(a) (b)

Page 20: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 20

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.

Page 21: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 21

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.

Page 22: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 22

MTF of the Visual System

Fig. 8: Modulation transfer function (MTF) of the human visual system. (a) Contrast versus spatial frequency sinusoidal grating; (b) Typical MTF plot.

cpd

Page 23: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 23

MTF of the Visual System

Human visual system is most sensitive to mid-frequencies (3~10 cycles/degree) & least sensitive to high frequencies.

Contrast sensitivity also depends on orientation of the grating (max for horizontal & vertical grating).

Page 24: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 24

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 visual system contains a number of independent spatial channels, each tuned to a independent spatial channels, each tuned to a different spatial frequency & orientation angle.different spatial frequency & orientation angle.

Page 25: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 25

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.

Page 26: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 26

Subjective Criteria

Table 1: Image goodness scales.

Page 27: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 27

Subjective Criteria

Table 2: Image impairment scales.

Sk: score,

nk: # observers, n: # grades.

Page 28: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 28

Quantitative Criteria

Page 29: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 29

Quantitative Criteria

Page 30: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 30

Quantitative Criteria

Page 31: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 31

Quantitative Criteria

Page 32: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 32

Quantitative Criteria

Page 33: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 33

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.

Page 34: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 34

Color Representation

Fig. 9: Visible color spectrum.

Page 35: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 35

Color Representation

Fig. 10: Visible wavelengths.

Page 36: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 36

Color Representation

Human color perception is 3 dimensional.

The perceptual attributes of colors are brightness, hue, & saturation.

Brightness presents the perceived luminance.

Hue refers to its “redness”, “greenness”, ...

Saturation is the aspect of perception that varies most strongly as more while light is added.

Page 37: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 37

Color Representation

Fig. 11: Hue representation.

Page 38: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 38

Color Representation

Fig. 12: Hue representation.

Page 39: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 39

Color Representation

Fig. 13: HSV color model representation.

Page 40: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 40

Color Representation

Fig. 14: HSV color model representation.

Page 41: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 41

Color Representation

Fig. 15: HSV color model representation.

Page 42: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 42

Color Representation

Fig. 16: HSV color model.

Page 43: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 43

Color Representation

Fig. 17: HIS color model.

Page 44: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 44

Color Representation

Fig. 18: HIS color model.

Page 45: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 45

Color Representation

Fig. 19: HIS color model.

Page 46: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 46

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 changewhen either the wavelength, the intensity, the hue, or amount of white light in a color is changed.

Page 47: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 47

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.

Page 48: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 48

Color Representation

Fig. 21: Colors as relative responses (ratios).

Page 49: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 49

Frequency Responses of Cones

Some colors cannot be produced using only positively weighted primaries.Some colors need negative amounts of primaries.

Fig. 22: Analysis spectrum of cone responses has negative lobs.

Page 50: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 50

Color Representation

Fig. 23: Monitor phosphor.

Page 51: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 51

Color Representation

A weighted sum of primaries produces a color that cannot be distinguished by an observer from the color of the spectrum.

Fig. 24: Additive color model

Page 52: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 52

Color Representation

Fig. 25: Primary & secondary colors of light & pigments.

Page 53: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 53

Color Representation

Primary colors for reflecting sources (also known as secondary colors):

Cyan, Magenta, & Yellow (CMY).Example: CMY color printer,

Cyan ink absorbs red light.Magenta ink absorbs green light.Yellow ink absorbs blue light.C+M+Y absorbs all light: Black!

Color printer works by using cyan, magenta, yellow, & black (CMYK) dyes. The dye:

Acts like a narrow-band filter.Saves ink.Produces higher-quality black.Increases gamut.

Page 54: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 54

Color Representation

Fig. 26: Single chip color CCD.

Page 55: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 55

Color RepresentationTable 3: Color coordinate systems

[Commission Internationale de L’Eclairage (CIE)].

Page 56: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 56

Color RepresentationTable 3: Color coordinate systems (Cntd).

Page 57: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 57

Color RepresentationTable 3: Color coordinate systems (Cntd).

Page 58: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 58

Color Representation

Table 4: Transformation from NTSC Receiver Primary to other coordinate systems.

Page 59: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 59

Color Representation

Page 60: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 60

Color Representation

Page 61: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 61

Color Representation

Page 62: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 62

Color Representation

Fig. 27: CIE XYZ (only positive lobs, but not orthogonal).

Page 63: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 63

Color Representation

Fig. 28: CIE XYZ chromaticity diagram.

Visible colors

Many pointsin XYZ do notcorrespond to visible colors!

Some hues do not correspond

to a pure spectrum

Page 64: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 64

Color Representation

Fig. 29: CIE XYZ chromaticity diagram.

Page 65: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 65

Color Representation

Fig. 30: Monitor gamut of CIE XYZ chromaticity diagram.

Page 66: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 66

Color Representation

Fig. 31: CIE XYZ chromaticity diagram.

Page 67: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 67

Color Representation

Fig. 32: The RGB safe-color cube.

Page 68: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 68

The Infamous Gamma Curve

A gamma curve is used for many reasons:CRT response:

The relation between voltage & intensity is non-linear.Color quantization:

We do not want a linear color resolution.More resolution for darker tones.Because we are sensitive to intensity ratios.

Perceptual effect:We perceive colors in darker environment less vivid.Hunt & Stevens effect.

Contrast reduction:Keep some contrast in the highlights.

γxx→

Page 69: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 69

Color Representation

Fig. 33: RGB color model.

Page 70: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 70

Color Representation

Fig. 34: CIE Lab color models.

Page 71: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 71

Color Representation

Fig. 35: color copier.

Page 72: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 72

Color Representation

Fig. 36: Different gamut.Blue: CRT, Red: 4-color printing.

Page 73: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 73

Color Representation

Fig. 37: System overview.

Page 74: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 74

Color Representation

Fig. 38: Pseudo color for detection.

Page 75: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 75

Color Representation

Fig. 39: Pseudo color example.

Page 76: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

Kasaei 76

Color Representation

Fig. 40: Color manipulation.

Page 77: In the name of Allah - Sharif University of Technologyce.sharif.edu/courses/85-86/2/ce823/resources/root/Course... · 2015-04-06 · Measurement of the mach band effect can be used

The EndThe End