Image Enhancement in the

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Neighborhood Processing
Spatial Filtering (Chapter 3)
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Lecture 6 Sharpening Filters
CS 4487/9587 Algorithms for Image Analysis
Digital Image Processing
Image enhancement in the spatial domain. Human vision for dummies Anatomy and physiology Wavelength Wavelength sensitivity.
Face Recognition and Biometric Systems 2005/2006 Filters.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Chapter 4 Image Enhancement in the Frequency Domain.
Digital Image Processing
CS 376b Introduction to Computer Vision 02 / 27 / 2008 Instructor: Michael Eckmann.
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
2-D, 2nd Order Derivatives for Image Enhancement
2D FOURIER TRANSFORMS AND IMAGE FILTERS DAVID COOPER SUMMER 2014.
Chapter 4 Image Enhancement in the Frequency Domain.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Basis beeldverwerking (8D040) dr. Andrea Fuster Prof.dr. Bart ter Haar Romeny dr. Anna Vilanova Prof.dr.ir. Marcel Breeuwer Convolution.
Chapter 5 Neighborhood Processing
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing Lecture12: Basics of Spatial Filtering.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Chapter 5: Neighborhood Processing
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
Spatial Filtering (Applying filters directly on Image) By Engr. Muhammad Saqib.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
CS654: Digital Image Analysis
Chapter 5: Neighborhood Processing 5.1 Introduction
Image processing using MATLAB
CS 691B Computational Photography
Digital Image Processing Lecture - 6 Autumn 2009.
Image Enhancement by Spatial Domain Filtering
Sharpening Spatial Filters ( high pass)  Previously we have looked at smoothing filters which remove fine detail  Sharpening spatial filters seek to.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
M ATLAB L ECTURE 3 Histogram Processing. H ISTOGRAM E QUALIZATION The imhist function create a histogram that show the distribution of intensities in.
Image Processing Lab Section 28/3/2016 Prepared by Mahmoud Abdelsatar Demonstrator at IT Dep. Faculty of computers and information Assuit University.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
1 Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering Objectives: We will learn about different.
Miguel Tavares Coimbra
Laboratory of Image Processing Pier Luigi Mazzeo
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof
Fundamentals of Spatial Filtering:
Image enhancement algorithms & techniques Point-wise operations
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Digital Image Processing
IMAGE PROCESSING AKSHAY P S3 EC ROLL NO. 9.
Fundamentals of Image Processing A Seminar on By Alok K. Watve
Image Enhancement in the
Image Enhancement in the
Image Enhancement in the
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Motion illusion, rotating snakes
Image Enhancement – Simple Intensity Processing
Chapter 2: Digital Image Fundamentals
Intensity Transformation
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Lecture 7 Spatial filtering.
Fundamentals of Spatial Filtering
FREQUENTLY USED 3x3 CONVOLUTION KERNELS
Presentation transcript:

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

MATLAB/Image Processing Toolbox HISTOGRAM EQUALIZATION >> f=imread(fig3.15(a).jpg’); %load in figure 3.15(a) >> imshow(f) % show figure in a new window >> figure, imhist(f) % show histogram in a new window % histogram is not normalized. >> ylim(‘auto’) % set histogram tick marks and axis limits automatically >> g=histeq(f,256); % histogram equalize this figure % you can also do this with the cumsum function >> hnorm=imhist(f)./numel(f); % computes normalized histogram >> figure, imshow(g) % show this figure in a new window >> figure, imhist(g) % generate a histogram of the equalized image >> ylim(‘auto’) % set limits again SEE GWE, Section 3.3.3 for a discussion of histogram specification using MATLAB

MATLAB/Image Processing Toolbox CORRELATION v. CONVOLUTION f w f w rotated 180˚ 00010000 12320 00010000 02321 Alignment: 00010000 00010000 02321 Now do zero padding: 0000000100000000 0000000100000000 ‘full’ correlation ‘full’ convolution 000023210000 000123200000 ‘same’ correlation ‘same” convolution 00232100 01232000 SEE GWE, Section 3.4.1 Linear Spatial Filtering, Figure 3.13

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

MATLAB/Image Processing Toolbox LINEAR SPATIAL FILTERING >> f=imread(fig3.15(a).jpg’); %load in checkerboard figure % g=imfilter(f,w,filtering_mode, boundary_options,size_options) % f is the input image % w is the filter mask % Filtering mode: % ‘corr’ filtering is done using correlation % ‘conv’ filtering is done using convolution -- flips mask 180 degrees % Boundary options % P without quotes (default) - pad image with zeros % ‘replicate’ - extend image by replicating border pixels % ‘symmetric’ - extend image by mirroring it across its border % ‘circular’ - extend image byrepeating it (one period of a periodic function) % Size options % ‘full’ - output is the same size as the padded image % ‘same’ - output is the same size as the input >> w=ones(9); % create a 9x9 filter (not normalized) >> gd=imfilter(f,w); % filter using default values >> imshow( gd, [ ]) % [ ] causes MATLAB to display using low and high % gray levels of input image. %Good for low dynamic range >> gr=imfilter(f,w,’replicate’); % pad using replication >> figure, imshow(gr, [ ]) % >> gs=imfilter(f,w,’symmetric’); % pad using symmetry >> figure, imshow(gs, [ ]) % show this figure in a new window SEE GWE, Section 3.4.1Linear Spatial Filtering

MATLAB/Image Processing Toolbox LINEAR SPATIAL FILTERING >> f=imread(fig3.15(a).jpg’); %load in checkerboard figure >> w=ones(9); % create a 9x9 filter (not normalized) % f is of type double in [0,1] by default >> f8=im2uint8(f); % converts image to uint8, i.e., integers in range [0,255] >> g8r=imfilter(f8,w,’replicate’); % pad using replication % imfilter creates an output of same data class as input, i.e., uint(8) >> imshow( g8r, [ ]) % clipping caused data loss since filter was not % normalized SEE GWE, Section 3.4.1Linear Spatial Filtering

MATLAB/Image Processing Toolbox MATLAB’s built-in filters >> f=imread(‘fig3.15(a).jpg’); %load in checkerboard figure >> w=fspecial(‘type’, parameters); % create filter mask % filter types: % ‘average’, default is 3x3 % ‘gaussian’, default is 3x3 and sigma=0.5 % ‘laplacian, default alpha=0.5 % ‘prewitt’, vertical gradient, default is 3x3. Get horizontal by wh=w’ % ‘sobel’, vertical gradient, default is 3x3 % ‘unsharp’, default is 3x3 with alpha=0.2 SEE GWE, Section 3.5 Image processing Toolbox Standard Spatial Filters

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

Image Enhancement in the Chapter 3 Image Enhancement in the Spatial Domain

MATLAB/Image Processing Toolbox PRODUCING FIGURE 3.40 >> f=imread(‘Fig_Moon.jpg’); %load in lunar north pole image >> w4=fspecial(‘laplacian’,0) % creates 3x3 laplacian, alpha=0 [0:1] >> w8=[1 1 1;1 -8 1;1 1 1] % create a Laplacian that fspecial can’t >>f=im2double(f); % output same as input unit8 so % negative values are truncated. % Convert to double to keep negative values. >> g4=f-imfilter(f,w4,’replicate’); % filter using default values >> g8=f-imfilter(f,w8,’replicate’); % filter using default values >> imshow(f) % display original image >> imshow(g4) % display g4 processed image >> imshow(g8) % display g8 processed image SEE GWE, Section 3.5.1Linear Spatial Filters