1 of 16

PERTEMUAN KE 3.1 – TOOLS PENGOLAHAN CITRA

PENGOLAHAN CITRA

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

2 of 16

R

P

S

TOOLS PENGOLAHAN CITRA

01

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

02

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

3 of 16

TOOLS PENGOLAHAN CITRA

01

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

4 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

TOOLS PENGOLAHAN CITRA

Berikut adalah beberapa Tools/Software Pengolahan Citra :

Matlab

sciLab

Python

C/C++

Java

dll

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

5 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

TOOLS PENGOLAHAN CITRA

Python adalah bahasa pemrograman open source. Dibuat oleh Guido van Rossum dan rilis pertama kali pada 1991

Python terkenal karena kemudahan dalam penggunaan dan tersedianya banyak library.

Library adalah kumpulan program/fungsi yang bisa digunakan oleh pemrogram. Sehingga pemrogram tidak perlu lagi membuat “codingan” dari nol.

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

6 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

TOOLS PENGOLAHAN CITRA

Library-library yang diperlukan dalam Pengolahan Citra:

OpenCV

Matplotlib

Numpy

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

7 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

TOOLS PENGOLAHAN CITRA

Untuk memulai pengolahan citra, Langkah awalnya adalah install Python dan library yang dibutuhkan.

Install Python

Download Python dari Website resminya : python.org dan selanjutnya ikuti langkah-Langkah instalasinya

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

8 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

TOOLS PENGOLAHAN CITRA

Setelah itu install library yang dibutuhkan.

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

9 of 16

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

02

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

10 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

Sebagai Langkah awal, kita akan membuka file citra menggunakan python dan OpenCV.

Untuk itu siapkan citra yang dibutuhkan dan ikuti script berikut

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

11 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

Penjelasan script adalah sebagai berikut :

•import cv2

import adalah perintah untuk memanggil library. Dalam hal ini karena library yang dipanggil adalah openCV maka dilakukan import cv2. cv2 adalah kode untuk openCV.

•image

image disini merupakan variable. Variable ini diisi dengan file citra butterfly.png. File ini bisa diganti dengan file citra yang dimiliki. Akan tetapi harus satu folder dengan file .py ini. Selanjutnya untuk memanggil file ini digunakan perintah cv2.imread

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

12 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

Penjelasan script adalah sebagai berikut :

•cv2.imshow

Perintah ini digunakan untuk menampilkan citra butterfly.png yang sudah ditampung di variable image. Sintaks “Contoh” hanya untuk memberi judul saja.

•cv2.waitKey(0)

Perintah ini digunakan agar gambar tetap di layar (tidak langsung closed ketika dibuka).

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

13 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

Selanjutnya, simpand an jalankan file python

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

14 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

Melihat dimensi citra

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

15 of 16

  • Input the text content you want according to the content you need, and input the text and other information.Input the text content you want according to the content you need, and input the text and other information.

  • Input the text content you want according to the content you need, and input the text and other information.

20NN

PERSIAPAN PENGOLAHAN CITRA DENGAN PYTHON

Membuka Citra dalam bentuk Matriks

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

16 of 16

Tim Penyusun:

1.

2.

3

TERIMA

KASIH

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA

PROGRAM STUDI INFORMATIKA

UNIVERSITAS GUNADARMA