Di ketahui citra asli dengan Gray Level sebagi berikut:
A
|
B
| |||||||
200
|
100
|
100
|
100
|
50
|
50
|
50
|
50
| |
0
|
200
|
50
|
50
|
10
|
100
|
150
|
200
| |
150
|
0
|
200
|
0
|
10
|
100
|
150
|
200
| |
50
|
50
|
50
|
200
|
10
|
100
|
150
|
200
| |
100
|
100
|
100
|
100
|
10
|
100
|
150
|
200
|
lakukan Image enhancement dengan :
a. Image Negative
b. Tambah kecerahan 25 % (point operation)
c. Image subtraction dengan citra A dan citra B
d. Lakukan gabungan citra A dan citra B
JAWABAN :
- S = -r + L – lS = L – l – rLA = 200LB = 200SA = 200 – 255 – r SB = 200 – 255 - r= -55 – r = -55 – rSehingga Gray Output =AB-255-155-155155-105-105-105-105-55-255-105-105-65-155-205-255-205-55-255-55-65-155-205-255-105-105-105-255-65-155-205-255-155-155-155-155-65-155-205-255
- Point OperationPO = r * 25%OutputAB5025252512,512,512,512,505013132,52537,5503805002,52537,550131313502,52537,550252525252,52537,550
- Image SubtractionA - BOutputA - B150505050-10100-100-150140-10050-20040-50-1000900-50-100
- GabungA + BOutputA + B2501501501501030020025016010035020060150200400110200250300