Title: Image Inpainting
1Image Inpainting
1
EE465 Introduction to Digital Image Processing
2Geometric Transformation
Widely used in computer graphics to generate
special effects
MATLAB functions griddata, interp2, maketform,
imtransform
2
EE465 Introduction to Digital Image Processing
3Basic Principle
- (x,y) ? (x,y) is a geometric transformation
- We are given pixel values at (x,y) and want to
interpolate the unknown values at (x,y) - Usually (x,y) are not integers and therefore we
can use linear interpolation to guess their values
MATLAB implementation zinterp2(x,y,z,x,y,meth
od)
3
EE465 Introduction to Digital Image Processing
4Rotation
y
y
x
?
x
4
EE465 Introduction to Digital Image Processing
5MATLAB Example
zimread('cameraman.tif')
original coordinates x,ymeshgrid(1256,1256)
new coordinates a2 for i1256for
j1256 x1(i,j)ax(i,j) y1(i,jy(i,j)/a enden
d
Do the interpolation z1interp2(x,y,z,x1,y1,'cu
bic')
5
EE465 Introduction to Digital Image Processing
6Rotation Example
?3o
6
EE465 Introduction to Digital Image Processing
7Scale
a1/2
7
EE465 Introduction to Digital Image Processing
8Affine Transform
parallelogram
square
8
EE465 Introduction to Digital Image Processing
9Affine Transform Example
9
EE465 Introduction to Digital Image Processing
10Shear
parallelogram
square
10
EE465 Introduction to Digital Image Processing
11Shear Example
11
EE465 Introduction to Digital Image Processing
12Projective Transform
B
B
A
A
C
C
D
D
quadrilateral
square
12
EE465 Introduction to Digital Image Processing
13Projective Transform Example
-4 2 -8 -3 -3 -5 6 3
0 0 1 0 1 1 0 1
13
EE465 Introduction to Digital Image Processing
14APLIKASI OPERASI GEOMETRI
Rotasi
15SUMMARY
- Operasi berbasis bingkai / frame adalah operasi
yang melibatkan 2 buah citra atau lebih dan
menghasilkan sebuah citra keluaran yang merupakan
hasil operasi matematis ( operasi aritmatik dan
operasi logika )
16SUMMARY
- Contoh implementasi operasi berbasis bingkai
antara lain image blending, dan deteksi gerak. - Operasi Geometrik berhubungan dengan perubahan
bentuk geometrik citra, yaitu ukuran ataupun
orientasinya.
17TUGAS
- Buat Program aplikasi pengolahan citra digital
untuk operasi aritmatik / geometri
18REFERENSI
- Rafael C. Gonzales dan Richard E. Woods, Digital
Image Processing, Edisi 2, Prentice Hall, 2002 - Rafael C. Gonzales, Richard E. Woods dan Steven
L. Eddins, Digital Image Processing using
Mathlab, Prentice Hall, 2003 - Achmad Balza, Firdausy Kartika. Teknik Pengolahan
Citra Digital dengan Delphi. Ardi
Publishing.Yogyakarta.2005.