Digital Image Processing, 2nd ed. www.imageprocessingbook.com © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals.

Slides:



Advertisements
Similar presentations
Introduction to MATLAB The language of Technical Computing.
Advertisements

Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 11 Representation.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 1: Introduction.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 8 Image Compression.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 11 Representation & Description Chapter 11 Representation.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 3 Filtering in.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 7 Wavelets and Multiresolution Processing Chapter.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 4 Image Restoration.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 10 Image Segmentation.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 12 Object Recognition Chapter 12 Object Recognition.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 9 Morphological.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 6 Color Image.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 7 Wavelets.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 10 Image Segmentation Chapter 10 Image Segmentation.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
© 2010 Gatesmark, LLC Digital Image Processing Using MATLAB ® 2nd edition Gonzalez, Woods, & Eddins Chapter 1 Introduction.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 9 Morphological Image Processing Chapter 9 Morphological.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 8 Image Compression Chapter 8 Image Compression.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 6 Color Image Processing Chapter 6 Color Image.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
© 2004 R. C. Gonzalez, R. E. Woods, and S. L. Eddins Digital Image Processing Using MATLAB ® Chapter 3 Intensity Transformations.
Matlab tutorial course Lesson 5: Loading and writing data, producing visual output
Introduction to MATLAB
Copyright © 2009 Curt Hill The Picture Object Getting and displaying.
Gulsah Tumuklu Ozyer MATLAB IMAGE PROCESSING TOOLBOX.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 8 – Image Compression.
Chapter 10 Image Segmentation.
CS112 Scientific Computation Department of Computer Science Wellesley College Numb3rs Number and image types.
© 2004 R. C. Gonzalez, R. E. Woods, and S. L. Eddins Digital Image Processing Using MATLAB ® Chapter 2 Fundamentals Chapter.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 12 Object Recognition.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 9 Morphological Image.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 7 Wavelets and Multiresolution.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 1 Introduction Chapter.
Digital Image Processing Lecture9: Intensity (Gray-level) Transformation Functions using MATLAB.
Presented By: ROLL No IMTIAZ HUSSAIN048 M.EHSAN ULLAH012 MUHAMMAD IDREES027 HAFIZ ABU BAKKAR096(06)
Introduction MATLAB stands for MATrix LABoratory.  Basics  Matrix Manipulations  MATLAB Programming  Graphics  Image types  Image Processing  Useful.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Image Processing Example.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Image Processing Example.
Digital Image Processing Lecture4: Fundamentals. Digital Image Representation An image can be defined as a two- dimensional function, f(x,y), where x.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 1: Introduction -Produced by Bartlane cable picture.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 1: Introduction Digital Imaging Chapter 1: Introduction.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 2 Digital Image Fundamentals.
Image Representation Last update st March Heejune Ahn, SeoulTech.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Introduction to MATLAB Ehsan Adeli M. Iran University of Science and Technology, E-Learing Center, Fall 2008 (1387)
Lecture Seven Figures from Gonzales and Woods, Digital Image Processing, Copyright 2002.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 5 Image Restoration and.
การใช้งานโปรแกรม MATLAB ดร. อำนาจ ขาวเน. BASIC ELEMENTS OF MATLAB MATLAB Desktop MATLAB Editor Help System MATLAB (MATrix LABoratory)
An Introduction to Programming in Matlab Emily Blumenthal
Image Enhancement in the
Image Enhancement in the
Chapter 2: Digital Image Fundamentals
Chapter 2: Digital Image Fundamentals
Lecture 16 Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, 2002.
Fourth Year – Software Engineering
Fundamentals of Image Processing Digital Image Representation
MATLAB stands for MATrix LABoratory.
Chapter 2: Digital Image Fundamentals
Presentation transcript:

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 2: Digital Image Fundamentals

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods MATLAB/Image Processing Toolbox function [rt, f, g] = twodsin(A,u0, v0, M, N) % TWODSIN Compares for loops vs. vectorization. % The comparison is based on implementing the function % f(x,y)=Asin(u0x+v0y) for x=0,1,2,…,M-1 and % y=0,1,2,…,N-1. The inputs to the function are % M and N and the constants in the function. % First implement using for loops tic %start timing for r=1:M u0x=u0*(r-1); for c=1:N v0y=v0*(c-1); f(r,c)=A*sin(u0x+v0y); end t1=toc; % End timing % Now implement using vectorization tic %start timing r=0:M-1; c=0:N-1; [C,R]=meshgrid(c,r); %special MATLAB function for fast 2F function evaluations % creates all the (x,y) pairs for function evaluation g=A*sin(u0*R+v0*C); t2=toc; %End timing %compute the ratio of the two times rt=t1/(t2+eps); %use eps in case t2 is close to zero.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods MATLAB/Image Processing Toolbox >> [rt,f,g]=twodsin(1, 1/(2*pi), 1/(4*pi), 512, 512); >> rt rt = %according to GWE. I only got ~19. >>g=mat2gray(g); >> imshow(g) %show in separate window.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods MATLAB/Image Processing Toolbox imshow (f,G) %F is an image array %G is the number of intensity levels. Default is 256. imwrite(f, ‘filename’) % filename MUST contain a recognized file format extension %.tif or.tiff identify TIFF %.jpg identifies jpeg % additional parameters for tiff and jpeg identify compression, etc. imfiinfo filename % returns all kind of cool file information such as size Imread(‘filename’) % filename MUST contain an appropriate extension

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods MATLAB/Image Processing Toolbox indexed intensity RGB binary General matrix rgb2ind rgb2gray mat2gray ind2graygray2ind ind2rgb bw2ind im2bw

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods MATLAB/Image Processing Toolbox One pixel 123N M r c

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods MATLAB/Image Processing Toolbox >> h=imhist(f) %any previously loaded image >> h1=h(1:10:256) %create bins for horiz axis >> horz=(1:10:256; % >> bar(horiz, h1) % >> axis([ ]) %expand lower range of y-axis >> set(gca, ‘xtick’, 0:50:255) %gca means ‘get current axis’ >> set(gca, ‘ytick’, 0:2000:15000) %lab h & v ticks