Simple Image Processing
description
Transcript of Simple Image Processing
![Page 1: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/1.jpg)
Simple Image Processing
Speaker : Lin Hsiu-Ting
Date : 2005 / 04 / 27
![Page 2: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/2.jpg)
Outline
Concept of Image Processing
Space Domain Image Processing
Frequency Domain Image Processing
Geometry Transform
Shape Processing
Color System
![Page 3: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/3.jpg)
Concept of Image Processing
![Page 4: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/4.jpg)
Concept
The “Image” Signals We Can See Include Special
Information We Process These Signals To Get Relative
Information Integration Technology
Engineering Mathematics Physical Biology Medical Science Entertainments
![Page 5: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/5.jpg)
Concept
Application Digital Photo Map Natural Disaster Monitored Others…
Relative Software Photo Shop Photo Impact Others… These Aren’t Today Key Points
![Page 6: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/6.jpg)
Concept
General Topics of Image Process Image Capture & Image Digitize Image Stretch & Remove Distortion Shape Process Image Features Extracted Color Image Process Image Coding & Compression
![Page 7: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/7.jpg)
Concept
Image Digitized Sampling Quantization Coding
Non-Ideal Situations In Process Quantization Error Distortion Noise
![Page 8: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/8.jpg)
Image with Noise
Images Usually Suffer Noise When Sampling
(Like Use Scanners or Digital Cameras…) Some Common Noise
Dot Noise Uniform Noise Sinusoid Wave Noise Gaussian Noise Other
Sometimes We Can Remove Noise According Their Features
![Page 9: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/9.jpg)
Image with Noise
Dot Noise
Uniform Noise
![Page 10: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/10.jpg)
Image with Noise
Sinusoid Wave Noise
Gaussian Noise
![Page 11: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/11.jpg)
Space Domain Image Processing
![Page 12: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/12.jpg)
Space Domain Image Processing
Characteristic Representation Profile Histogram Statistic ( Mean & Standard Deviation )
Point Operation Binarization Inverse Contract Stretch Histogram Equalization Gamma Correction Arithmetic & Logic Operation
![Page 13: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/13.jpg)
Binarization Before Binarization ( 8-bit Gray Level )
Binarization (Threshold = 200)
![Page 14: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/14.jpg)
Contract Stretch
Before Processing
After Processing
Process Flow
Load Image
Histogram
Statistic
Stretch
n
MinMax
MinffT 2)(
![Page 15: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/15.jpg)
Histogram Equalization
Before Processing
After Processing
Process Flow
Load Image
Histogram
Statistic
Equalization
n
iin fpfT
0
)()(
![Page 16: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/16.jpg)
Arithmetic (Add & Sub) Image #1
Image #2
Image #1 + Image #2
Image #1 - Image #2
![Page 17: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/17.jpg)
Space Domain Image Processing
Range Operation Smoothing ( Low Pass Filter ) Median Filter High Pass Filter Differentiation
Mask Matrix
987
654
321
*),(),('
www
www
www
yxfyxf
Note : We Can Also Use 5x5 , 7x7 or Larger Matrix Process Range Operation But It Cause More Computing
![Page 18: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/18.jpg)
Median Filter
Before Processing
After Processing
For Every 3 x 3 Block
Search Cn = Median (C)
Let f (x , y) = Cn
Note : The Method Will Have Poor Result When A Lot Of Noise Cluster
987
654
321
CCC
CCC
CCC
![Page 19: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/19.jpg)
Frequency Domain Image Processing
![Page 20: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/20.jpg)
Frequency Domain Image Processing
Fast Fourier Transform
Implement Recursion Algorithm
Butterfly Algorithm
Easy To Achieve Filter High Pass / Low Pass
Band Pass / Notch
1
2
02/
12
02/ ]12[]2[][
N
r
kN
kN
N
r
kN wrxwwrxkX
![Page 21: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/21.jpg)
Frequency Domain Image Processing
2D Fast Fourier Transform
)),(((),( yxfFFTFFTvuF vyux
Do FFT For Every Row
……………..
.................
Do FFT For Every Column
F ( u , v )
Note : We Always Use Log Unit Present The Spectrum Distribute Instead of Linear Because Its Dynamic Range is Larger Then Screen
![Page 22: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/22.jpg)
Frequency Domain Image Processing
Image
Spectrum
Image with Sin Noise
Spectrum
![Page 23: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/23.jpg)
Geometry Transform
![Page 24: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/24.jpg)
Geometry Transform
Coordinates Transform Rotation
Scaling
Twist
Gray Level Interpolation Replicative Interpolation
Bilinear Interpolation
![Page 25: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/25.jpg)
Coordinates Transform
Rotation
Scaling
Twist
yCosxSiny
ySinxCosx
'
'
byy
axx
'
'
yy
yTanxx
'
'
![Page 26: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/26.jpg)
Gray Level Interpolation
When We Transform From R to R* Some Point In R* Can’t Correspond From R Rotation, Magnify Suffer This Question Ex: Magnify
1 2 3
4 5 6
7 8 9
1 ? 2 ? 3 ?
? ? ? ? ? ?
4 ? 5 ? 6 ?
? ? ? ? ? ?
7 ? 8 ? 9 ?
? ? ? ? ? ?
![Page 27: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/27.jpg)
Gray Level Interpolation
Replicative Interpolation Use The Nearest Point To Present
Let j = Int(x+0.5) , k = Int(y+0.5) =>
g ( x’ , y’ ) = f ( j , k )
Bilinear Interpolation Use Four Neighborhood Points More Smooth Than Replicative
![Page 28: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/28.jpg)
Gray Level Interpolation Replicative Interpolation
Bilinear Interpolation
![Page 29: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/29.jpg)
Shape Processing
![Page 30: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/30.jpg)
Shape Processing
Find The Edges And Bones Binarization
Process The Edge And Bone Erosion Dilation Open / Close Remove Isolate Points
Usually Simple Logic Operation
![Page 31: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/31.jpg)
Erosion & Dilation
Binarization Image Erosion
Dilation
![Page 32: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/32.jpg)
Color System
![Page 33: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/33.jpg)
Color System
The Colors We See Wave Length 380 nm ~ 780 nm Use Rods to Recognize Brightness Use Cones to Recognize Colors
(Three Types For R. G. B. Colors) Usually Eyes Are More Sensitive To
Brightness Than Colors This Feature is Convenient For Image
Compressing
![Page 34: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/34.jpg)
Color System
Common Color System
R. G. B. System (Red, Green and Blue)
C. M. Y. System (Cyan, Magenta and Yellow)-- A Complement of R. G. B
Y. U. V System
Y. I. Q System
H. S. I. System
![Page 35: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/35.jpg)
Conclusion
Image Processing Is Useful Image Processing Is Interesting Although We Needn’t Know The
Details Of Techniques Because Many Powerful Software Will Handle Them…
But Knowing General Concept Is Helpful For Us
![Page 36: Simple Image Processing](https://reader035.fdocuments.us/reader035/viewer/2022062805/56814d51550346895dba88fd/html5/thumbnails/36.jpg)
Reference
數位影像處理 - 連國珍 著 , 儒林出版 http://www.cs.ecnu.edu.cn/teach/down
/dip/Chapter02.pps http://www.fosu.edu.cn