image enhancement in spatial domain

23
Image Enhancement in Spatial Domain Presented by : - Mr. Trushar Shah. ME/MC Department, U.V.Patel College of Engineering, Kherva

Upload: ailani

Post on 19-Mar-2016

62 views

Category:

Documents


0 download

DESCRIPTION

Image Enhancement in Spatial Domain. Presented by : - Mr. Trushar Shah. ME/MC Department, U.V.Patel College of Engineering, Kherva. Today’s topics. What is image enhancement? Approaches. Image processing in spatial domain. Implementation -Image negative -Contrast Stretching - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Image Enhancement in Spatial Domain

Image Enhancement in Spatial Domain

Presented by : -Mr. Trushar Shah.ME/MC Department,U.V.Patel College of Engineering,

Kherva

Page 2: Image Enhancement in Spatial Domain

Today’s topics• What is image enhancement?• Approaches.• Image processing in spatial domain.• Implementation

- Image negative- Contrast Stretching- Power law transformation- Dynamic range compression- Bit plane Slicing.- Gray level Slicing.

Page 3: Image Enhancement in Spatial Domain

What is Image Enhancement?

• To process an image so that the result is more suitable than the original image for a specific application.

• Enhancement is the subjective process.

Page 4: Image Enhancement in Spatial Domain

Approaches

Image Enhancement

Spatial Domain Frequency Domain

Point Processing

Filtering OR Masking

Page 5: Image Enhancement in Spatial Domain

Approaches

• Spatial domain – direct manipulation of pixel.

• Frequency domain – Manipulation in frequency plane

Page 6: Image Enhancement in Spatial Domain

Spatial domain Image can be modeled

by a continuous function of two variables : (x, y) co-ordinates of point/pixel.

The image function values correspond to the brightness/intensity at image point and generally denoted by f(x, y).

f(x, y).x

y

Page 7: Image Enhancement in Spatial Domain

Spatial domain(cont.)

• Point processing : -- Independent of neighbors

• Masking : -- based on small sub image.

Page 8: Image Enhancement in Spatial Domain

Image negative

Page 9: Image Enhancement in Spatial Domain

N = Gmax - O

Page 10: Image Enhancement in Spatial Domain

Contrast Stretching

Page 11: Image Enhancement in Spatial Domain

Contrast Stretching

• Factor that causes low contrast images Lack of dynamic range. Poor illumination

• Algorithm• Implementation

Page 12: Image Enhancement in Spatial Domain

Power law Transformations

Page 13: Image Enhancement in Spatial Domain

Power law Transformations

Page 14: Image Enhancement in Spatial Domain

Compression of dynamic range

Page 15: Image Enhancement in Spatial Domain

Compression of dynamic Range

• s = c . log(1+|r|)• Log function scales [0,10^6] to [0,6].• c=255/6.

Page 16: Image Enhancement in Spatial Domain

Bit plane slicing

• Separating each bit from pixel gray level, and gathering same for all pixel will generate bit plane.

• Monochrome images are made of the 8-bit planes.

Page 17: Image Enhancement in Spatial Domain
Page 18: Image Enhancement in Spatial Domain

Gray level Slicing

• Separating gray level range of interest to different level so that the region is highlighted.

Page 19: Image Enhancement in Spatial Domain
Page 20: Image Enhancement in Spatial Domain

Histogram• The histogram of a digital image with intensity

levels in the range [0,L-1] is a discrete function h(rk)=nk where,- rk is the kth intensity value.- nk is the number of pixel with intensity rk.

• Normalized Histogram:-- A normalized histogram is given by p(rk) = nk/MN.

- The sum of all components of normalized histogram is 1.

Page 21: Image Enhancement in Spatial Domain

Histogram

Page 22: Image Enhancement in Spatial Domain
Page 23: Image Enhancement in Spatial Domain

Conclusion for Histogram Processing

• The whole span of gray levels should be used.

• Number of pixels for all the gray levels, should be equal.

OR

• The probability of occurrence of all gray level should be uniform.