Carilah hasil akhir dari proses CONTRAST SCRETCHING dan
IMAGE NEGATIVE dari data dibawah
1. CONTRAST
SCRETCHING |
|
|
|
|
|
|
|
|
|
|
|
Persamaan
garisnya : |
|
|
|
|
|
|
|
|
diketahui
: (r1,s1) dan (r2,s2) |
|
|
|
|
|
|
|
|
sehingga: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Untuk S-I, dimana diketahui titik 1 (0,0)
titik 2 (0.1,0.3) |
sehingga: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
S = |
3 r |
untuk
0 ≤ r ≤ 0.1 |
Untuk S-II, dimana diketahui titik 1
(0.1,0.3) titik 2 (0.4,0.3) |
sehingga: |
|
|
|
|
|
S = |
r
+ 0.3 |
untuk
0.3≤ r ≤0.4 |
Untuk S-II, dimana diketahui titik 1
(0.4,0.3) titik 2 (0.8,0.6) |
sehingga: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Graylevel yang diketahui
adalah : |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1. |
200 --> |
r = |
200/255 |
|
= |
0.78431 |
|
S-IV |
|
2. |
10 --> |
r = |
10/255 |
|
= |
0.03922 |
|
S-I |
|
3. |
50 --> |
r = |
50/255 |
|
= |
0.19608 |
|
S-II |
|
4. |
70 --> |
r = |
70/255 |
|
= |
0.27451 |
|
S-II |
|
5. |
125 --> |
r = |
125/255 |
|
= |
0.4902 |
|
S-III |
|
6. |
150--> |
r = |
150/255 |
|
= |
0.58824 |
|
S-III |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Kemudian masukkan r di
atas kedalam persamaan garisnya : |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
S = |
2r - 1 |
|
|
|
|
|
|
|
|
|
2*0.784314-1 * 255 |
|
|
|
|
|
|
|
1.5688-1 * 255 |
|
|
|
|
|
|
|
|
144,993 |
|
|
|
|
|
|
|
|
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
S = |
3 r |
|
|
|
|
|
|
|
|
|
3*0.039216 * 255 |
|
|
|
|
|
|
|
|
29,988 |
|
|
|
|
|
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
S = |
r + 0.3 |
|
|
|
|
|
|
|
|
|
0.196078 + 0.3 * 255 |
|
|
|
|
|
|
|
126.506 |
|
|
|
|
|
|
|
|
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
S = |
r + 0.3 |
|
|
|
|
|
|
|
|
|
0.027451 + 0.3 *255 |
|
|
|
|
|
|
|
146.498 |
|
|
|
|
|
|
|
|
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
S = |
(3/4) r -9/20 |
|
|
|
|
|
|
|
|
0.75 * 0.5882 - 0.45 *
255 |
|
|
|
|
|
|
|
-2.2568 |
|
|
|
|
|
|
|
|
|
-2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
S = |
(3/4) r -9/20 |
|
|
|
|
|
|
|
|
0.75*0.490196 - 0.45 *
255 |
|
|
|
|
|
|
|
-21.018 |
|
|
|
|
|
|
|
|
|
-21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tabel hasil akhirnya adalah : |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2. IMAGE NEGATIVE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Model Image Negative : |
|
|
|
|
|
S = - r + L - 1 |
|
|
|
|
|
|
S = L - 1 - r |
|
|
|
|
|
|
|
|
L adalah Max.Graylevel |
|
|
|
|
|
|
|
|
|
|
|
|
|
Jawab : |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dari citra input
diperoleh L = 200, sehingga persamaan garisnya adalah : |
|
S =
200 - 255 - r |
|
|
|
|
|
|
S = -55
- r |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Maka Graylevel
Outputnya : |
|
|
|
|
|
200 |
S = -55-200 = - 255 |
|
|
|
|
150 |
S = -55-150 = - 405 |
|
|
|
|
125 |
S = -55-125 = - 180 |
|
|
|
|
70 |
S = -55-70 = - 125 |
|
|
|
|
50 |
S = -55-50 = - 105 |
|
|
|
|
10 |
S = -55-10 = -65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Maka tabel Hasil
Akhirnya : |
|
|
|
|
0 komentar:
Posting Komentar