Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 3 (2.5.07) Image Enhancement in Spatial Domain

Similar presentations


Presentation on theme: "Lecture 3 (2.5.07) Image Enhancement in Spatial Domain"— Presentation transcript:

1 Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Shahram Ebadollahi 11/29/2018 DIP ELEN E4830

2 Today’s Lecture - Outline
Review of Lecture 2 Processing Images in Spatial Domain: Intro Image Histogram Point Operations Using Histogram for Image Enhancement Kernel Operations 11/29/2018

3 Today’s Lecture - Outline
Review of Lecture 2 Processing Images in Spatial Domain: Intro Image Histogram Point Operations Using Histogram for Image Enhancement Kernel Operations 11/29/2018

4 Today’s Lecture - Outline
Review of Lecture 2 Processing Images in Spatial Domain: Intro Image Histogram Point Operations Using Histogram for Image Enhancement Kernel Operations 11/29/2018

5 Processing Images in Spatial Domain: Introduction
: Spatial operator defined on a neighborhood N of a given pixel point processing mask processing 11/29/2018

6 Mask (filter, kernel, window, template) processing
(0,0) y (0,0) y x x 11/29/2018

7 Today’s Lecture - Outline
Review of Lecture 2 Processing Images in Spatial Domain: Intro Image Histogram Point Operations Using Histogram for Image Enhancement Kernel Operations 11/29/2018

8 Image Histogram normalized histogram histogram H bi-level image 255
0.5 bi-level image 255 256x256 H Pixel values linearly increasing from 0 to 255 with increasing column index histogram 1/256 255 256x256 11/29/2018

9 Image Histogram: example
11/29/2018

10 Today’s Lecture - Outline
Review of Lecture 2 Processing Images in Spatial Domain: Intro Image Histogram Point Operations Using Histogram for Image Enhancement Kernel Operations 11/29/2018

11 Point Processing: Thresholding
Input gray-level value Output gray-level value 11/29/2018

12 Point Processing: Gamma Correction
11/29/2018

13 Point Processing: Contrast Stretching
L-1 11/29/2018

14 Point Processing: Clipping & Thresholding
L-1 clipping L-1 thresholding 11/29/2018

15 Point Processing: Gray-level Slicing
L-1 L-1 11/29/2018

16 Point Processing: Bit-plane Slicing
lsb msb where, e.g. 11/29/2018

17 Point Processing: Bit-plane Slicing (example)
Point operation for obtaining n-th bit-plane: Bi-level image n=7 n=6 n=5 n=4 11/29/2018

18 Today’s Lecture - Outline
Review of Lecture 2 Processing Images in Spatial Domain: Intro Image Histogram Point Operations Using Histogram for Image Enhancement Kernel Operations 11/29/2018

19 Histogram Modification
Apply a transform to an image such that the resulting image has desired histogram. Histogram Equalization (linearization) Histogram Specification (matching) Non-adaptive vs. Adaptive Histogram Modification Global histogram Local histogram 11/29/2018

20 Histogram Equalization
Source image Equalized Image Corresponding Histograms 11/29/2018

21 Histogram Equalization
Often images poorly use the full range of the gray scale Solution: Transform image such that its histogram is spread out more evenly in gray scale Rather than guessing the parameters and the form of the transformation use original gray-scale distribution as the cue 11/29/2018

22 Histogram Equalization
# pixels with the j-th gray-level Point operation for equalizing histogram for the example image image size 11/29/2018

23 Histogram Matching Transform image such that resulting image has specified histogram Histogram Matching 11/29/2018

24 Histogram Matching 11/29/2018

25 Adaptive Histogram Equalization
(0,0) y Histogram Equalization Note: local structure revealed x 11/29/2018

26 Today’s Lecture - Outline
Review of Lecture 2 Processing Images in Spatial Domain: Intro Image Histogram Point Operations Using Histogram for Image Enhancement Kernel Operations 11/29/2018

27 Kernel Operator: Intro
Note: need to handle borders of the image 11/29/2018

28 Kernel Operator: Intro
Spatial Filtering kernel 11/29/2018

29 Smoothing: Image Averaging
FT Low-pass filter * Image edges are softened 11/29/2018

30 Smoothing: Averaging (example)
original 3x3 5x5 9x9 Noise effect is gone, but image edges are heavily blurred also 15x15 35x35 11/29/2018

31 Order Statistics Filter
original 11/29/2018

32 Image Derivative 11/29/2018

33 Image Sharpening: 1-st derivative
Image gradient: Robert’s operator Sobel filter in frequency domain Sobel’s operator 11/29/2018

34 Image Sharpening: 2-nd derivative
Image Laplacian: 11/29/2018

35 Image Sharpening: 2-nd derivative
+ * Laplacian filter in frequency domain 11/29/2018

36 High-boost Filtering - + + Avg. Unsharp mask: high-boost with A=1
11/29/2018

37 Recap Point operations vs. Kernel Operations Image Histogram
Image Enhancement using Point Operators Contrast Stretching Gamma Correction Using Image Histogram for Enhancement Histogram Equalization Histogram Matching Image Enhancement using Kernel Operators Low-pass filtering (averaging) High-pass filtering (sharpening) 11/29/2018


Download ppt "Lecture 3 (2.5.07) Image Enhancement in Spatial Domain"

Similar presentations


Ads by Google