Image enhancement using MATLAB Digital Image Processing 2014 Fall NTU 1.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Local Enhancement Histogram processing methods are global processing, in the sense that pixels are modified by a transformation function based on the gray-level.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Chapter 3 Image Enhancement in the Spatial Domain.
Motion illusion, rotating snakes. Slide credit Fei Fei Li.
Image Enhancement in the Frequency Domain Part III
EE 4780 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing
Image Enhancement by Modifying Gray Scale of Individual Pixels
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing
Face Recognition and Biometric Systems 2005/2006 Filters.
ECE 472/572 - Digital Image Processing Lecture 5 - Image Enhancement - Frequency Domain Filters 09/13/11.
The Fourier Transform Jean Baptiste Joseph Fourier.
Chapter 4 Image Enhancement in the Frequency Domain.
Image Enhancement in the Frequency Domain Part III Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
The Fourier Transform Jean Baptiste Joseph Fourier.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
Digital Image Processing
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Point Processing : Computational Photography Alexei Efros, CMU, Fall 2008 Some figures from Steve Seitz, and Gonzalez et al.
Image Enhancement.
Lecture 2. Intensity Transformation and Spatial Filtering
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Digital Image Processing Spatial Domain Filtering: Part II.
Chapter 4 Image Enhancement in the Frequency Domain.
Chapter 3 Image Enhancement in the Spatial Domain.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Presentation Image Filters
Computer Vision – Enhancement(Part II) Hanyang University Jong-Il Park.
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing
Digital Image Processing Lecture9: Intensity (Gray-level) Transformation Functions using MATLAB.
Image Enhancement in the Spatial Domain (MATLAB)
Chapter 5: Neighborhood Processing
Image Enhancement ارتقاء تصویر Enhancement Spatial Domain Frequency Domain.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Sejong Univ. CH3. Area Processes Convolutions Blurring Sharpening Averaging vs. Median Filtering.
CS 691B Computational Photography
Image Enhancement (Frequency Domain)
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Digital Image Processing Lecture - 6 Autumn 2009.
Image Enhancement by Spatial Domain Filtering
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Digital Image Processing Week V Thurdsak LEAUHATONG.
Point Processing When doing so you actually perform a special type of image processing known as point processing.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Image Pre-Processing in the Spatial and Frequent Domain
ECE 692 – Advanced Topics in Computer Vision
Gaussian Lowpass Filter
Math 3360: Mathematical Imaging
Digital Image Processing
Image Enhancement in the Spatial Domain
Image Enhancement in the
Fundamentals of Spatial Filtering
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Histogram Probability distribution of the different grays in an image.
Image Enhancement – Simple Intensity Processing
Intensity Transform Contrast Stretching Y ← u0+γ*(Y-u)/s
Image Enhancement in the Spatial Domain
Presentation transcript:

image enhancement using MATLAB Digital Image Processing 2014 Fall NTU 1

Outline Spatial domain – gray-level transformation – histogram processing – linear filter – non-linear filter Frequency domain – Gaussian low-pass filter (smoothing filter) – Gaussian high-pass filter (sharpening filter) – high-frequency emphasis filtering 2

Outline Spatial domain – gray-level transformation gamma transformation image negatives contrast stretching log transformation – histogram processing – linear filter – non-linear filter Frequency domain 3

gray-level transformation gray-level transformation is a pixel by pixel operation to change the contrast of an overall image 4

gamma transformation g = imadjust(f, [low_in high_in], [low_out high_out], gamma); 5

gamma transformation g = imadjust(f, [ ], [0 1]); 6

gamma transformation g = imadjust(f, [ ], [0 1]); 7

gamma transformation g = imadjust(f, [], [], 2); 8

gamma transformation g = imadjust(f, [], [], 2); 9

image negatives g = imadjust(f, [0 1], [1 0]); g = imcomplement(f); 10

contrast stretching Low_High = stretchlim(f); g = imadjust(f, Low_High, []); 11

contrast stretching Low_High = stretchlim(f); g = imadjust(f, Low_High, [1 0]); 12

contrast stretching Low_High = stretchlim(f); g = imadjust(f, Low_High, [1 0]); 13

log transformation g = log(1 + double(f)); 14

Outline Spatial domain – gray-level transformation – histogram processing histogram equalization histogram matching contrast-limited adaptive histogram equalization – linear filter – non-linear filter Frequency domain 15

histogram equalization g = histeq(f, 256); 16

histogram equalization g = histeq(f, 256); 17

histogram matching p = twomodegauss(0.15, 0.05, 0.75, 0.05, 1, 0.07, 0.002); g = histeq(f, p); 18

histogram matching p = twomodegauss(0.15, 0.05, 0.75, 0.05, 1, 0.07, 0.002); g = histeq(f, p); 19

contrast-limited adaptive histogram equalization g = adapthisteq(f); 20

contrast-limited adaptive histogram equalization g = adapthisteq(f, 'NumTiles', [25 25]); 21

contrast-limited adaptive histogram equalization g = adapthisteq(f, 'NumTiles', [25 25], 'ClipLimit', 0.05); 22

Outline Spatial domain – gray-level transformation – histogram processing – linear filter mean filter Laplacian filter – non-linear filter Frequency domain 23

mean filter mean filter is windowed filter of linear class, that smoothes image 24

Laplacian filter f2 = tofloat(f); g2 = imfilter(f2, w, 'replicate'); 25

Laplacian filter Image enhanced using the Laplacian filter 26

Outline Spatial domain – gray-level transformation – histogram processing – linear filter – non-linear filter median filter Frequency domain 27

median filter salt and pepper noise : – fn = imnoise(f, 'salt & pepper', 0.2); 28

median filter gm = medfilt2(fn); 29

median filter gms = medfilt2(fn, 'symmetric'); 30

Outline Spatial domain – gray-level transformation – histogram processing – linear filtering – non-linear filtering Frequency domain – Gaussian low-pass filter (smoothing filter) – Gaussian high-pass filter (sharpening filter) – high-frequency emphasis filtering 31

Gaussian low-pass filter F = fft2(f); H = lpfilter('gaussian', M, N, sig); G = H.* F; g = ifft2(G); 32

Outline Spatial domain – gray-level transformation – histogram processing – linear filtering – non-linear filtering Frequency domain – Gaussian low-pass filter (smoothing filter) – Gaussian high-pass filter (sharpening filter) – high-frequency emphasis filtering 33

Gaussian high-pass filter H = hpfilter('gaussian', PQ(1), PQ(2), D0); g = dftfilt(f, H); 34

Outline Spatial domain – gray-level transformation – histogram processing – linear filtering – non-linear filtering Frequency domain – Gaussian low-pass filter (smoothing filter) – Gaussian high-pass filter (sharpening filter) – high-frequency emphasis filtering 35

high-frequency emphasis filtering HBW = hpfilter('btw', PQ(1), PQ(2), D0, 2); gbw = dftfilt(f, HBW, 'fltpoint'); gbw = gscale(gbw); 36

high-frequency emphasis filtering H = *HBW; ghf = dftfilt(f, H, 'fltpoint'); ghf = gscale(ghf); 37

high-frequency emphasis filtering ghe = histeq(ghf); figure, imshow(ghe); 38