Anda di halaman 1dari 28

IMAGE

BADRUS ZAMAN
GAMBAR (IMAGE)

 Gambar (image) merupakan suatu representasi spatial dari suatu obyek,


dalam pandangan 2D atau 3D.
 Digital Image
 sebuah representasi dari gambar dua dimensi menggunakan gabungan satu
dan nol (binary).
 suatu fungsi dengan nilai-nilai yang berupa intensitas cahaya pada tiap-tiap
titik pada bidang yang telah diquantisasikan (diambil sampelnya pada
interval diskrit).
 image bertype vector atau raster.
 Tanpa adanya kualifikasi apapun, istilah "digital image" biasanya lebih
condong pada image raster.
 Titik dimana suatu gambar di-sampling disebut picture element (pixel).
 Nilai intensitas warna pada suatu pixel disebut gray scale level.
INTENSITAS WARNA

 1 bit binary-valued image (0 - 1)


 8 bits  gray level images (0 - 255)
 8 bits  color images
 24 bits  224 true color (255x256x256)
 32 bits  true color (232)
Format gambar digital

 spatial resolution  pixels X pixels


 color encoding  bits / pixel
Misal:

 Gambar berukuran 100 pixels x 100 pixels dengan color encoding


24 bits dengan R=8bits, G=8bits, B=8bits per pixel, maka :
 color encoding akan mampu mewakili 0 .. 16.777.215 (mewakili
16 juta warna)  224
 - Space disk yang dibutuhkan
= 100 * 100 * 3 byte (karena RGB)
= 30.000 bytes
= 30KB
atau
100 * 100 * 24bits = 240000bits
Tabel resolusi display dan kebutuhan
memory
 Jika suatu gambar disimpan maka yang disimpan adalah array
2D dimana masing-masing merepresentasikan data yang
berhubungan dengan pixel tersebut. Array[x,y] = warna pixel
 Setiap pixel dapat mempunyai informasi tambahan yang
berhubungan dengan pixel tersebut. Masing-masing gambar
juga memiliki informasi tambahan seperti lebar X panjang
gambar, kedalaman gambar, pembuat, dll.
Jenis Grafik

 Raster
 Setiap pixel didefinisikan secara terpisah.
 Vector
 formula matematika digunakan untuk menggambar graphics
primitives (garis, kotak, lingkaran,elips, dll) dan menggunakan
attributnya. Gambar vektor biasanya berukuran lebih kecil, gambar
tidak pecah, semua manipulasi dilakukan melalui rumus.
Vector vs. Raster
OBJECTIVES:
IDENTIFY THE DIFFERENCE BETWEEN VECTOR AND RASTER FILE
FORMATS
EXPLAIN THE APPLICATIONS OF THE TWO IMAGE FORMATS
Raster (Bitmap)

 Bitmap was the original term used for identifying an image


with an array of bits . Theses images are uncompressed pieces
of information.
 Bits: are pieces of stored information
 8 bits = 1 byte
 1000 bytes = 1 kilobyte
 1000 kilobytes = 1 megabyte
 1000 megabytes = 1 gigabyte
 1000 gigabytes = 1 terabyte
 1000 terabytes = 1 petabyte
Pixels

 Pixels: individual squares on a grid that makes up an image.


Each square is made up of a color.
 Resolution: identifies the number of pixels. Often described
using dots per inch (dpi) or pixels per inch (ppi)
 Web Resolution: 72 dpi
 Print Resolution: 200-300 dpi
Raster artwork
(also known as bitmaps):

 are composed of lots of small dots. This lends itself to photographic


or artistic effects because color gradations can be made very smooth
in a bitmap format. However, bitmap images lose their clarity when
they are increased in size because the dots get bigger. Take an
image that's 10 pixels wide by 10 pixels high, stretch it to 100 x 100
pixels and it looks like it's made of big squares.
 Adobe Photoshop, the industry standard for digital photo editing,
allows users to open and edit both formats; however, when a file is
opened in Photoshop, it can only be edited and saved as a raster
format file. All vector images (such as Illustrator AI and EPS files)
will be rasterized, that is, converted into the small dots that make up
the raster format.
Common File formats

 BMP; format file yang terbatas, tidak cocok digunakan untuk cetak
 EPS; format file yang fleksibel, yang dapat berisi gambar bitmap maupun
vektor
 GIF; biasanya digunakan untuk grafis-grafis di internet
 JPEG; atau juga format file JFIF, biasa digunakan sebagai grafik atau
gambar di internet karena memiliki tingkat ketajaman gambar yang dapat
mempengaruhi bobot file
 PICT; format file yang dapat berisi gambar bitmap maupun vektor, tetapi
biasanya file ini hanya digunakan oleh komputer Macintosh dan tidak
terlalu cocok untuk cetak
 TIFF; merupakan format file bitmap yang paling populer untuk cetak
 PNG; Portable Network Graphics
Raster Editing Programs

 Microsoft Paint (licensed)


 Adobe Photoshop (licensed)
 Gimp (open source)
Vector artwork
(sometimes called line art)

 this kind of artwork is made up of lines and filled areas only, which are
mathematically drawn and calculated (hence the term vector) by the software
you use. They can be stretched in size without losing any clarity or sharpness.
Because of their mathematical origins, vector images are readily scalable
without distortion.
For vector image editing, use either Adobe Illustrator or Inkscape. Either
program will also allow users to import raster images into their vector files.
File Formats

 PS; format file yang paling populer untuk menyimpan gambar


vektor walaupun format EPS juga dapat berisi data bitmap.
 PDF; format file yang cukup serbaguna, yang dapat berisi data
apa saja termasuk halaman-halaman lengkap
 PICT; format file yang dapat berisi data bitmap maupun
vektor, tetapi biasanya hanya dapat digunakan oleh komputer
macintosh
 Illustrator (.AI)*
 Encapuslated PostScript (.EPS)*
Vector/Raster
When and Why?
Vector programs
make short work of  If you are working with mainly solid color objects, manipulated
manipulated text and text or many small objects, the clear answer is that a VECTOR
any solid color
work.
program will save you time.
 If you are working with complicated drop shadows, or other 3D
effects, texture or photographs, RASTER is the correct choice.

For photo work,


only a raster
program makes
sense.

http://www.webreference.com/graphics/column31/4.html
Properties of a Vector
 Path/Stroke: outline of a shape
 Fill: inner part or color of a shape; a shape can have no fill
 Anchor Point: strokes are created through a series of connected and
unconnected anchor points
 Bezier curve: curve created by a curved anchor point
Vector Programs

 Adobe Illustrator (licensed)


 Adobe Fireworks (licensed)
 Inkscape (open source)
TRANSMISI GAMBAR

 Gambar digital ditransmisikan kepada penerima melalui


jaringan komputer.
 Ukuran gambar bergantung pada format representasi gambar
yang dipergunakan untuk transmisi.
 Persyaratan jaringan untuk transmisi gambar :
 Jaringan dapat mengakomodasi transportasi data dengan ukuran
besar
 Transmisi gambar memerlukan transportasi yang reliable
 Tidak bersifat time dependent (berbeda dengan transmisi
audio/video)
Transmisi berdasar format
representasi gambar

 Raw image data transmission


 Compressed image data transmission
 Symbolic image data transmission
Raw image data transmission

 Gambar di-generate melalui video digitizer dan ditransmisikan


dalam format digital dari video digitizer.
 Kapasitas transmisi
 = spatial resolution * pixel quantization
Contoh :
 Gambar dengan resolusi 640 x 480 pixel dengan pixel quantization
8 bit per pixel.
 Maka untuk transmisi diperlukan 307200 bytes pada jaringan
komputer.
Compressed image data transmission

 Gambar di-generate oleh video digitizer dan dikompres


terlebih dahulu sebelum ditransmisikan.
 Penurunan ukuran gambar tergantung pada metode kompresi
dan compression rate yang dipergunakan.
 Contoh : JPEG, MPEG
Symbolic image data transmission

 Gambar dipresentasikan melalui symbolic data representation


sebagai image primitive (bentuk dasar 2D atau 3D), atribut,
dan informasi kontrol lain.
 Metode ini dipergunakan dalam computer graphics
Contoh:

 Waktu yang diperlukan untuk mengirimkan gambar:


- VGA – 8 bit compatible
- SVGA - 24 bit compatible
pada jaringan dengan kecepatan 64 Kbps dan 1.5 Mbps?
Jawab:

 VGA 640 x 480 x 8 = 2457600 bits


 SVGA 1024 x 768 x 24 = 18874368 bits
 Waktu yang dibutuhkan :
Terimakasih

Anda mungkin juga menyukai