• Tidak ada hasil yang ditemukan

PCD Lanjut Pertemuan 2 GLCM

N/A
N/A
Protected

Academic year: 2019

Membagikan "PCD Lanjut Pertemuan 2 GLCM"

Copied!
60
0
0

Teks penuh

(1)

PCD Lanjut Prajanto Wahyu Adi

PCD Lanjut – Pertemuan 2

Gray-Level

Co-occurrence Matrix

(GLCM)

P r a j a n t o W a h y u A d i

(2)

Rencana Kegiatan Perkuliahan

Semester

# Pokok Bahasan

1 Pengujian Kualitas Citra

2 Gray-Level Co-occurrence Matrix (GLCM)

3 Principal Component Analysis (PCA) 4 Fuzzy C-Mean (FCM) 5 K-Nearest Neighbor (KNN) 6 Jaringan Syaraf Tiruan (JST)

# Pokok Bahasan

8 Modulus Function (MF) pada domain Integer Wavelet Transform (IWT) 9 Chinese Remainder Theorem (CRT) pada

domain IWT 10

11 Kompresi Lossy 12

13 Kompresi Loseless 14 *Presentasi Tugas Besar*

(3)

PCD Lanjut Prajanto Wahyu Adi

Content

GLCM

1

Contrast

2

Correlation

3

Energy

4

Homogeneity

5

Hasil Ekstraksi Fitur GLCM

(4)

1. GLCM

P r a j a n t o W a h y u A d i

(5)

PCD Lanjut Prajanto Wahyu Adi

GLCM

GLCM adalah sebuah teknik untuk

(6)

GLCM

Nilai

θ

yang banyak adalah 0

0

, 45

0

, 90

0

,

(7)

PCD Lanjut Prajanto Wahyu Adi

GLCM

Contoh:

Diketahui sebuah citra 3-bit sebagai

berikut:

bentuklah GLCM dengan jarak 1 dan

θ

=

0

0

([0 1]) !

(8)

GLCM

Contoh:

Membentuk GLCM

[0 1]

:

3 5 7

2 4 1 6 3 5

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1 0 0 0

3 0 0 0 0 0 2 0 0

4 0 1 0 0 0 0 0 0

5 0 0 0 0 0 0 0 1

6 0 0 0 1 0 0 0 0

(9)

PCD Lanjut Prajanto Wahyu Adi

GLCM

Contoh:

Membentuk GLCM

[0 1]

:

Setelah Normalisasi =

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0 7 0 0 0 0 0 0 0 0

(10)

GLCM

Ekstraksi fitur (

feature extraction

) tekstur

GLCM menghasilkan beberapa fitur, antara

lain:

ContrastCorrelationEnergy

(11)

PCD Lanjut Prajanto Wahyu Adi

2. Contrast

P r a j a n t o W a h y u A d i

(12)

Contrast

Contrast

merupakan

fitur

yang

merepresentasikan

perbedaan

tingkat

warna atau skala keabuah (grayscale)

yang muncul pada sebuah citra

Contrast akan bernilai 0 jika piksel

ketetanggaan mempunyai nilai yang sama

(13)

PCD Lanjut Prajanto Wahyu Adi

Contrast

Contoh:

Hitunglah Contrast dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

(14)

Contrast

Contoh:

Hitunglah Contrast dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0

0 0 0 0 0 0 0 0

667

,

0

6

4

6

1

)

4

2

(

2

) 4 , 2 (

(15)

PCD Lanjut Prajanto Wahyu Adi

Contrast

Contoh:

Hitunglah Contrast dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0 7 0 0 0 0 0 0 0 0

333

,

1

6

8

6

2

)

5

3

(

2

) 5 , 3 (

(16)

Contrast

Contoh:

Hitunglah Contrast dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0

0 0 0 0 0 0 0 0

5

,

1

6

9

6

1

)

1

4

(

2 )

1 , 4 (

(17)

PCD Lanjut Prajanto Wahyu Adi

Contrast

Contoh:

Hitunglah Contrast dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0 7 0 0 0 0 0 0 0 0

667

,

0

6

4

6

1

)

7

5

(

2

) 7 , 5 (

(18)

Contrast

Contoh:

Hitunglah Contrast dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0

0 0 0 0 0 0 0 0

5

,

1

6

9

6

1

)

3

6

(

2

) 3 , 6 (

(19)

PCD Lanjut Prajanto Wahyu Adi

Contrast

Contoh:

Hitunglah Contrast dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0 7 0 0 0 0 0 0 0 0

667

,

5

6

34

6

9

4

9

8

4

(20)

3. Correlation

P r a j a n t o W a h y u A d

i

(21)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Correlation merepresentasikan keterkaitan

linear dari derajat dari citra keabuan

Correlation bernilai antara -1 hingga 1

(22)

Correlation

Correlation merepresentasikan keterkaitan

linear dari derajat dari citra keabuan

Correlation bernilai antara -1 hingga 1

Dimana:

 

(23)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Hitunglah Correlation dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

(24)

Correlation

Contoh:

Menghitung :

(25)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung :

(26)

Correlation

Contoh:

Menghitung :

(27)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung :

(28)

Correlation

Contoh:

Menghitung :

(29)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung :

(30)

Correlation

Contoh:

Menghitung :

(31)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung :

 

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0 7 0 0 0 0 0 0 0 0

343

,

1

36

65

216

390

216

169

49

1

50

121

i

(32)

Correlation

Contoh:

Menghitung :

(33)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung :

(34)

Correlation

Contoh:

Menghitung :

(35)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung :

(36)

Correlation

Contoh:

Menghitung :

(37)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung :

 

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0 7 0 0 0 0 0 0 0 0

863

,

1

36

125

216

750

216

289

50

1

49

361

j

(38)

Correlation

Contoh:

Menghitung Correlation:

(39)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung Correlation:

(40)

Correlation

Contoh:

Menghitung Correlation:

(41)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung Correlation:

(42)

Correlation

Contoh:

Menghitung Correlation:

(43)

PCD Lanjut Prajanto Wahyu Adi

Correlation

Contoh:

Menghitung Correlation:

(44)

4. Energy

P r a j a n t o W a h y u A d

i

(45)

PCD Lanjut Prajanto Wahyu Adi

Energy

Energy

merepresentasikan

ukuran

keseragaman pada citra

Semakin tinggi kemiripan citra maka akan

semakin tinggi pula nilai Energy

(46)

Energy

Contoh:

Hitunglah Energy dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0

(47)

PCD Lanjut Prajanto Wahyu Adi

Energy

Contoh:

Hitunglah Energy dari GLCM berikut:

(48)

5. Homogeneity

P r a j a n t o W a h y u A d

i

(49)

PCD Lanjut Prajanto Wahyu Adi

Homogeneity

Homogeneity merepresentasikan ukuran

keserbasamaan

Homogeneity akan bernilai tinggi jika

semua piksel mempunyai nilai yang

uniform

(50)

Homogeneity

Contoh:

Hitunglah Homogeneity dari GLCM berikut:

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0

(51)

PCD Lanjut Prajanto Wahyu Adi

Homogeneity

Contoh:

Hitunglah Homogeneity dari GLCM berikut:

(52)

Homogeneity

Contoh:

Hitunglah Homogeneity dari GLCM berikut:

(53)

PCD Lanjut Prajanto Wahyu Adi

Homogeneity

Contoh:

Hitunglah Homogeneity dari GLCM berikut:

(54)

Homogeneity

Contoh:

Hitunglah Homogeneity dari GLCM berikut:

(55)

PCD Lanjut Prajanto Wahyu Adi

Homogeneity

Contoh:

Hitunglah Homogeneity dari GLCM berikut:

(56)

Homogeneity

Contoh:

Hitunglah Homogeneity dari GLCM berikut:

(57)

PCD Lanjut Prajanto Wahyu Adi

6. Hasil Ekstraksi

Fitur GLCM

P r a j a n t o W a h y u A d

i

(58)

Hasil Ekstraksi Fitur GLCM

Hasil ekstraksi fitur GLCM:

Contrast :5,667Correlation :-0,056Energy :0,222Homogeneity :0,306

i j 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 0 0 0 0 0 0 0

2 0 0 0 0 1/6 0 0 0 3 0 0 0 0 0 2/6 0 0 4 0 1/6 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1/6 6 0 0 0 1/6 0 0 0 0

(59)

PCD Lanjut Prajanto Wahyu Adi

Hasil Ekstraksi Fitur GLCM

Hasil ekstraksi fitur GLCM:

Contrast : 5,667Correlation :-0,056Energy : 0,222Homogeneity : 0,306

Fitur-fitur tersebut selanjutnya dapat

digunakan dalam proses klasifikasi atau

identifikasi

citra

dengan

algoritma

klasifikasi seperti KNN, ANN/JST, dsb.

Untuk hasil ekstraksi fitur yang terlalu

(60)

Sekian

Referensi

Dokumen terkait

FAKULTAS PENDIDIKAN ILMU PENGETAHUAN SOSIAL IKlP

Hasil ekstraksi POC ini menggunakan perbandingan asam organik terhadap bahan organik 15% dan asam yang digunakan asam fulvat bukan propionat sesuai saran Van Rooijen

Pendataan Desa adalah proses penggalian, pengumpulan, pencatatan, verifikasi dan validasi data SDGs Desa, yang memuat data objektif kewilayahan dan kewargaan Desa berupa

Pengembangan SDM • Pendidikan dan Pelatihan • Kegiatan non Diklat • Tugas Belajar • Promosi Kinerja Pegawai • Kualitas • Kuantitas • Ketepatan Waktu •

Puji syukur senantiasa penulis panjatkan kehadirat Allah SWT sehingga penulis dapat menyelesaikan Karya Tulis Ilmiah dengan judul “Teknik Relaksasi Pernafasan dan Murottal Al

Sebaliknya di dalam Pasal 1571 Kitab Undang-Undang Hukum Perdata menyebutkan bahwa jika sewa menyewa tidak dibuat dengan tulisan, maka sewa itu tidak berakhir pada

[r]

Pertama, penjual mengungkapkan hal-hal yang terkait dengan transaksi murabahah , tetapi tidak terbatas pada: harga perolehan aset murabahah , janji pemesanan dalam murabahah