NIM : 15110362
Soal :
|
|
Lakukan Image Enchantment dengan :
a. Image Negative
b. Tambah Kecerahan 25% (point operation)
c. Image Substraction dengan Citra A & Citra B
d. Lakukan gabung Citra A & B
Jawab :
a. S = -r + L – l
S = L – l – r
LA = 200
LB = 200
SA = 200 – 255 – r SB = 200 – 255 - r
= -55 – r = -55 – r
Sehingga Gray Output =
|
|
b. Point Operation
PO = r * 25%
Output
|
|
c. Image Subtraction
A - B
Output
A - B
| |||
150
|
50
|
50
|
50
|
-10
|
100
|
-100
|
-150
|
140
|
-100
|
50
|
-200
|
40
|
-50
|
-100
|
0
|
90
|
0
|
-50
|
-100
|
d. Gabung
A + B
Output
A + B
| |||
250
|
150
|
150
|
150
|
10
|
300
|
200
|
250
|
160
|
100
|
350
|
200
|
60
|
150
|
200
|
400
|
110
|
200
|
250
|
300
|