presentation citra interpolasi
TRANSCRIPT
REZA ANDREA Exibitor of Digital Entertainment Games Indonesian ICT Award 2012
@bengkuring
Raden Reza Andrea
3d-ECAdesign.blogspot.com
2304a59d
@bengkuring Raden Reza Andrea 2304a59d
INTERPOLASI TETANGGA TERDEKAT
@bengkuring Raden Reza Andrea 2304a59d
Scaling Image
Scale out
@bengkuring Raden Reza Andrea 2304a59d
Sample 1
1 2 3 4
1 100 200 120 150
2 70 80 100 100
3 80 70 30 90 * Hanya Asumsi nilai keabu-abuan
1 2 3 4
1 2 3
@bengkuring Raden Reza Andrea 2304a59d
Pengambilan Pixel
x y K 1 1 100 1 2 70 1 3 80 2 1 200 2 2 80 2 3 70 3 1 120 3 2 100 3 3 30 4 1 150 4 2 100 4 3 90
K(x,y)
@bengkuring Raden Reza Andrea 2304a59d
Scale out
1 2
1 ? ?
2 ? ?
4 x 3 2 x 2
@bengkuring Raden Reza Andrea 2304a59d
Scale out
1 2
1 ? ?
2 ? ?
4 x 3 2 x 2
Sx = 0,5
Sy = 0,5
W = 4 x 0,5 = 2
H = 3 x 0,5 = 1,5 = 2
@bengkuring Raden Reza Andrea 2304a59d
pembulatan
x y Ki x1 y1 K0 x1 y1 K0
1 1 100 0,5 0,5 100 1 1 100
1 2 70 0,5 1 70 1 1 70
1 3 80 0,5 1,5 80 1 2 80
2 1 200 1 0,5 200 1 1 200
2 2 80 1 1 80 1 1 80
2 3 70 1 1,5 70 1 2 70
3 1 120 1,5 0,5 120 2 1 120
3 2 100 1,5 1 100 2 1 100
3 3 30 1,5 1,5 30 2 2 30
4 1 150 2 0,5 150 2 1 150
4 2 100 2 1 100 2 1 100
4 3 90 2 1,5 90 2 2 90
),()','(0 yxKyxK i
@bengkuring Raden Reza Andrea 2304a59d
Hasil Pengambilan nilai awal
x1 y1 K0
1 1 100
1 1 70
1 2 80
1 1 200
1 1 80
1 2 70
2 1 120
2 1 100
2 2 30
2 1 150
2 1 100
2 2 90
1 2
1 100 120
2 80 30
@bengkuring Raden Reza Andrea 2304a59d
Hasil Pengambilan nilai awal
x1 y1 K0
1 1 100
1 1 70
1 2 80
1 1 200
1 1 80
1 2 70
2 1 120
2 1 100
2 2 30
2 1 150
2 1 100
2 2 90
1 2
1 100 120
2 80 30
@bengkuring Raden Reza Andrea 2304a59d
Hasil Scale out
1 2
1 100 120
2 80 30
4 x 3 2 x 2 Sx = 0,5 Sy = 0,5
1 2 3 4
1 100 200 120 150
2 70 80 100 100
3 80 70 30 90
@bengkuring Raden Reza Andrea 2304a59d
Scale out Ex2
4 x 3 3 x 2
Sx = 0,8
Sy = 0,5
1 2 3
1 ? ? ?
2 ? ? ?
@bengkuring Raden Reza Andrea 2304a59d
),()','(0 yxKyxK i
x y Ki x1 y1 K0 x1 y1 K0
1 1 100 0,8 0,5 100 1 1 100
1 2 70 0,8 1 70 1 1 70
1 3 80 0,8 1,5 80 1 2 80
2 1 200 1,6 0,5 200 2 1 200
2 2 80 1,6 1 80 2 1 80
2 3 70 1,6 1,5 70 2 2 70
3 1 120 2,4 0,5 120 2 1 120
3 2 100 2,4 1 100 2 1 100
3 3 30 2,4 1,5 30 2 2 30
4 1 150 3,2 0,5 150 3 1 150
4 2 100 3,2 1 100 3 1 100
4 3 90 3,2 1,5 90 3 2 90
@bengkuring Raden Reza Andrea 2304a59d
Hasil Scale out ex2
4 x 3 3 x 2 Sx = 0,8 Sy = 0,5
1 2 3 4
1 100 200 120 150
2 70 80 100 100
3 80 70 30 90
1 2 3
1 100 200 150
2 80 70 90
@bengkuring Raden Reza Andrea 2304a59d
Why?
4 x 3 3 x 2 Sx = 0,8 Sy = 0,5
1 2 3 4
1 100 200 120 150
2 70 80 100 100
3 80 70 30 90
1 2 3
1 100 200 150
2 80 70 90
1 2 3
1 100 200 120
2 80 70 30
@bengkuring Raden Reza Andrea 2304a59d
Real sample
Citra Asli Scale Out Scale In
LOST PIXEL
@bengkuring Raden Reza Andrea 2304a59d
Scaling Image
Scale in
@bengkuring Raden Reza Andrea 2304a59d
Scale In
4 x 3 6 x 6
Sx = 1,5
Sy = 2
W = 4 x 1,5 = 6
H = 3 x 2 = 6
1 2 3 4 5 6
1
2
3
4
5
6
@bengkuring Raden Reza Andrea 2304a59d
),()','(0 yxKyxK i
x y Ki x1 y1 K0 x1 y1 K0
1 1 100 1,5 2 100 2 2 100
1 2 70 1,5 4 70 2 4 70
1 3 80 1,5 6 80 2 6 80
2 1 200 3 2 200 3 2 200
2 2 80 3 4 80 3 4 80
2 3 70 3 6 70 3 6 70
3 1 120 4,5 2 120 5 2 120
3 2 100 4,5 4 100 5 4 100
3 3 30 4,5 6 30 5 6 30
4 1 150 6 2 150 6 2 150
4 2 100 6 4 100 6 4 100
4 3 90 6 6 90 6 6 90
pembulatan
@bengkuring Raden Reza Andrea 2304a59d
Hasil Scale in Step 1
1 2 3 4 5 6
1
2 100 200 120 150
3
4 70 80 100 100
5
6 80 70 30 90
@bengkuring Raden Reza Andrea 2304a59d
HOW? Sx = 1,5
Sy = 2
100
Sy = 2 px
OR 100 1 px
100 100 2 px
Sx = 1,5 px
100 100 2 px
@bengkuring Raden Reza Andrea 2304a59d
HOW? Sx = 1,5
100 200
?
120 150
100 100 100 100 100 100
@bengkuring Raden Reza Andrea 2304a59d
Ketentuan Sx = 1,5
100 200 120 150
100 100 200 200 120 150
Batas atas Batas bawah
1,5 = 2 1,5 = 1
@bengkuring Raden Reza Andrea 2304a59d
Hasil Scale in
1 2 3 4 5 6
1 100 100 200 200 120 150
2 100 100 200 200 120 150
3 70 70 80 80 100 100
4 70 70 80 80 100 100
5 80 80 70 70 30 90
6 80 80 70 70 30 90
@bengkuring Raden Reza Andrea 2304a59d
Hasil Scale in
4 x 3 6 x 6 Sx = 1,5 Sy = 2
1 2 3 4
1 100 200 120 150
2 70 80 100 100
3 80 70 30 90
1 2 3 4 5 6
1 100 100 200 200 120 150
2 100 100 200 200 120 150
3 70 70 80 80 100 100
4 70 70 80 80 100 100
5 80 80 70 70 30 90
6 80 80 70 70 30 90
@bengkuring Raden Reza Andrea 2304a59d
Why?
4 x 3
6 x 6
Sx = 1,5 Sy = 2
1 2 3 4
1 100 200 120 150
2 70 80 100 100
3 80 70 30 90
@bengkuring Raden Reza Andrea 2304a59d
Conclusion on Your Hand