Download presentation
Presentation is loading. Please wait.
Published byReynold Day Modified over 9 years ago
1
Lecture Eight Matlab for spatial filtering and intro to DFTs Figures from Gonzalez and Woods, Digital Image Processing, Copyright 2002, Gonzalez, Woods, and Eddins, Digital Image Processing with MATLAB, Copyright, 2004, and Jahne, Digital Image Processing, 4 th Edition, Copyright, 1997
2
Imadjust g=imadjust(f,[low_in,high_in],[low_out,high_out],gamma) Includes various contract transformations.
3
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
4
Logarithmic and Constrast Transformations g=c*log(1+double(f)) gs=im2uint8(mat2gray(g )); % to range [0,1] and to gray scale Contrast transformation g=1./(1+(m./(double(f)+eps)).^E) Use of eps prevents overflow if f has any zero values m is turning point
5
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
6
Stem and plot Find out syntax from typing help stem and help plot in MATLAB.
7
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
8
Histeq command g=histeq(f,hspec) hspec is a specified histogram. If you do g=histeq(f,256) you get histogram equalization.
9
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
10
Chosen Histgram
11
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
12
Spatial Filters g=imfilter(f,w,mode,bndry,size) Mode= ‘corr’ correlation—standard ‘conv’ convolution, w rotated 180 degrees
13
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
14
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
15
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
16
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
17
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
18
Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering
19
Fourier Transforms Based on notion Fourier introduced to Heat transfer that any periodic function can be written as a possibly infinite sum of sines and cosines. Important in Differential equations Probability and statistics (characteristic functions, proof of central limit theorem) Almost any area of engineering you can name.
20
Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain
21
Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain
22
Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain
23
Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain
24
Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain
25
Chapter 4 Image Enhancement in the Frequency Domain Chapter 4 Image Enhancement in the Frequency Domain
26
Fourier Spectrum and Phase Two images Mix up phase and amplitude
27
Two pictures from another text
28
Mix up amplitude and phase Amplitude from 1, phase from 2, amplitude from 2, phase from one.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.