Top Banner
Chapter- 2 Digital Image Fundamentals Motilal Nehru National Institute of Technology Allahabad 1 Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad Digital Image Processing, 3 rd ed. Gonzalez & Woods
63

Dip chapter 2

Jun 23, 2015

Download

Education

Amar Meena

digital image processing chepter 2 by gonzalaze
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Dip chapter 2

1

Chapter- 2Digital Image Fundamentals

Motilal Nehru National Institute of TechnologyAllahabad

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Digital Image Processing, 3rd ed. Gonzalez & Woods

Page 2: Dip chapter 2

2

Chapter 2Digital Image Fundamentals

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 3: Dip chapter 2

3

Eye’s Blind Spot

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 4: Dip chapter 2

4

Distribution of Light Receptors

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 5: Dip chapter 2

5

Distribution of Light Receptors (Contd.)

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 6: Dip chapter 2

6

Image Formation in the Eye

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Perception takes place by the relative excitation of light receptors, which transform radiant energy into electrical impulses that ultimately are decoded by the brain

Page 7: Dip chapter 2

7

HVS Characteristics

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

-Subjective brightness is a logarithmic function of the light incident on the eye.-Total range of distinct intensity levels to which the eye can discriminate simultaneously, is small compared to the total adaptation range.-Current sensitivity of a visual system is called the brightness adaptation levels .- At Ba adaptation level , intersecting curve represents the range of subjective brightness that eye can perceive

Page 8: Dip chapter 2

8

Brightness Discrimination

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

-The ability of the eye to discriminate between changes in light intensity at any specific adaptation level- The quantity ∆Ic/I , ∆Ic is the increment of illumination discriminable 50 % of the time with background illumination I, is called the Weber ratio

Page 9: Dip chapter 2

9

Brightness Discrimination

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Small weber ratio --- small percentage change in intensity is discriminable --- good brightness discrimination Large weber ratio----- a large percentage change in intensity is required ---- poor brightness discrimination

The curve shows that the brightness discrimination is poor at low level of illumination and it improves significantly as background illumination increasesAt low level illumination – vision is carried out by rods At high level illumination – vision is carried out by cones The number of different intensities a person can see at any point of time in a monochrome image is 1 to 2 dozens

Page 10: Dip chapter 2

10

Visual Perception

Perceived brightness is not a simple function of intensity

• Mach bands: visual system tends to undershoot or overshoot around the boundary of regions of different intensities

• Simultaneous contrast: region’s perceived brightness does not depend on its intensity

• Optical illusions: eye fills in non-existing information or wrongly perceives geometrical properties of objects

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 11: Dip chapter 2

11

Mach Band Effect

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 12: Dip chapter 2

12

Simultaneous Contrast

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 13: Dip chapter 2

13

Some Optical Illusions

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

(a) Outline of a square is seen clearly

(c) Two horizontal line segments are of the same length, but one appears shorter than the other

(b) Outline of a circle is seen

(d) All lines that are oriented at 45 degree are equidistant and parallel

Optical illusions: Eye fills in non-existing information or wrongly perceives geometrical properties of objects

Page 14: Dip chapter 2

14

Electromagnetic Spectrum

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 15: Dip chapter 2

15

Color Lights

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Energy is increasing

Page 16: Dip chapter 2

16

Properties of Light

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 17: Dip chapter 2

17

Image Sensing

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Images are generated by the combination of the illumination source and the reflection or absorption of energy from that source by elements of the scene being imaged

Page 18: Dip chapter 2

18

Imaging Sensors

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 19: Dip chapter 2

19

Image Acquisition

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 20: Dip chapter 2

20

Image Acquisition

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

A rotating X-ray source provides illumination and the sensors opposite the source collect the X-ray energy that passes through the object

Page 21: Dip chapter 2

21

Image Acquisition using Sensor Arrays

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 22: Dip chapter 2

22

CCD Camera

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 23: Dip chapter 2

23

CCD Vs CMOS

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 24: Dip chapter 2

24

Image Formation Model

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 25: Dip chapter 2

25

Image Formation Model

Dr. Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 26: Dip chapter 2

26

Monochromatic Image

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 27: Dip chapter 2

27

Image Sampling and Quantization

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

(a) Continuous image (b) A scan line from A to B (c) Sampling (d) Quantization

Discretizing coordinate values is called SamplingDiscretizing the amplitude values is called Quantization

Page 28: Dip chapter 2

28

Image Sampling and Quantization

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 29: Dip chapter 2

29

Digital Image

Dr .Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 30: Dip chapter 2

30

Digital Image Representation

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 31: Dip chapter 2

31

Digital Image Representation

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 32: Dip chapter 2

32

Digital Image Representation

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 33: Dip chapter 2

33

Representing Digital Images

• Digital image– M N array– L discrete intensities – power of 2

• L = 2k

• Integers in the interval [0, L - 1]• Dynamic range: ratio of maximum /

minimum intensity– Low: image has a dull, washed-out gray look

• Contrast: difference between highest and lowest intensity

– High: image have high contrastDr.Basant Kumar

Motilal Nehru National Institute of Technology, Allahabad

Page 34: Dip chapter 2

34

Saturation and Noise

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

The upper limit intensity is determined by saturation and the lower limit by noise

Page 35: Dip chapter 2

35

Storage bits for Various Values of N and K

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Digital image# bits to store : b = M N kWhen M = N: b = N2kk-bit image: e.g. an image with 256 possible discrete intensity values is called an 8-bit image

(Square Image)

Page 36: Dip chapter 2

36

Spatial and Intensity Resolution• Resolution: dots (pixels) per unit distance• dpi: dots per inch

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 37: Dip chapter 2

37

Spatial Resolution Example

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 38: Dip chapter 2

38

Variation of Number of Intensity Levels

• Reducing the number of bits from k=7 to k=1 while keeping the image size constant

• Insufficient number of intensity levels in smooth areas of digital image leads to false contouring

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 39: Dip chapter 2

39

Effects of Varying the Number of Intensity Levels

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 40: Dip chapter 2

40

Effects of Varying the Number of Intensity Levels

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 41: Dip chapter 2

41

Image Interpolation• Using known data to estimate values at unknown locations• Used for zooming, shrinking, rotating, and geometric

corrections• Nearest Neighbor interpolation

– Use closest pixel to estimate the intensity– simple but has tendency to produce artifacts

• Bilinear interpolation– use 4 nearest neighbor to estimate the intensity– Much better result– Equation used is

• Bicubic interpolation– Use 16 nearest neighbors of a point– Equation used is

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 42: Dip chapter 2

42Dr.Basant Kumar

Motilal Nehru National Institute of Technology, Allahabad

Zooming using Various Interpolation Techniques

Page 43: Dip chapter 2

43

Arithmetic Operations

• Array operations between images• Carried out between corresponding pixel pairs• Four arithmetic

s(x, y) = f(x, y) + g(x, y)

d(x, y) = f(x, y) – g(x, y)

p(x, y) = f(x, y) g(x, y)

v(x, y) = f(x, y) ÷ g(x, y)

• e.g. Averaging K different noisy images can decrease noise– Used in the field of astronomy

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 44: Dip chapter 2

44

Averaging of Images

Averaging K different noisy images can decrease noise. Used in astronomy

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 45: Dip chapter 2

45

Image Subtraction

Enhancement of difference between images using image subtraction

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 46: Dip chapter 2

46

Image Subtraction Application

Mask mode radiography

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 47: Dip chapter 2

47

Shading correction by image multiplication (and division)

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

g(x, y) = h(x, y) x f(x, y)

Page 48: Dip chapter 2

48

Masking (RIO) using image multiplication

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 49: Dip chapter 2

49

Arithmetic Operations• To guarantee that the full range of an arithmetic operation

between images is captured into a fixed number of bits, the following approach is performed on image ffm = f – min(f)

which creates an image whose minimum value is 0. Then the scaled image isfs = K [ fm / max(fm)]

whose value is in the range [0, K]Example- for 8-bit image , setting K=255 gives scaled image

whose intensities span from 0 to 255

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 50: Dip chapter 2

50

Set and Logical Operations

• Elements of a sets are the coordinates of pixels (ordered pairs of integers) representing regions (objects) in an image– Union– Intersection– Complement– Difference

• Logical operations– OR– AND– NOT– XOR

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 51: Dip chapter 2

51

Digital Image Processing, 3rd ed.Gonzalez & Woods

Chapter 2Digital Image Fundamentals

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

A - B= A∩ Bc

Page 52: Dip chapter 2

52

Set operations involving gray-scale images

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

, b } b

}

The union of two gray-scale sets is an array formed from the maximum intensity between pairs of spatially corresponding elements

Page 53: Dip chapter 2

53

Logical Operations

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 54: Dip chapter 2

54

Spatial Operations

• Single-pixel operations– For example, transformation to obtain the

negative of an 8-bit image

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 55: Dip chapter 2

55

Spatial Operations

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Neighborhood operationsFor example, compute the average value of the pixels in a rectangular neighborhood of size m n centered on (x, y)

Page 56: Dip chapter 2

56

Spatial Operations

• Geometric spatial transformations– Called rubber-sheet transformations– Consists of two operations

• Spatial transformation of coordinatese.g. (x, y) = T { ( v, w) } = ( v/2, w/2)

– Affine transform: scale, rotate, transform, or sheer a set of points

• Intensity interpolation

• Affine transform [x y 1]= [v w 1] [Affine Matrix, T]

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 57: Dip chapter 2

57

AFFINE TRANSFORMATION

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 58: Dip chapter 2

58

Interpolation

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 59: Dip chapter 2

59

Image Registration• Used for aligning two or more images of the same scene• Input and output images available but the specific

transformation that produced output is unknown• Estimate the transformation function and use it to register the

two images.• Input image- image that we wish to transform• Reference image- image against which we want to register

the input• Principal approach- use tie points ( also called control

points) ,which are corresponding points whose locations are known precisely in the input and reference images

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 60: Dip chapter 2

60

Image Registration

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad

Page 61: Dip chapter 2

61

Vector and Matrix Operations

• RGB images• Multispectral images

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 62: Dip chapter 2

62

Image Transforms

• Image processing tasks are best formulated by– Transforming the images– Carrying the specified task in a transform domain– Applying the inverse transform

Dr.Basant Kumar Motilal Nehru National Institute of Technology, Allahabad

Page 63: Dip chapter 2

63

Image Transforms

Dr.Basant KumarMotilal Nehru National Institute of Technology, Allahabad