Tag Archives: tiff

TIFF — Tagged Image File Format

TIFF — Tagged Image File Format

Banyak Image gambar yang dapat didukung dengan spesifikasi TIFF atau LibTIFF dapat dibaca oleh imread.

imread mendukung kemampuan TIFF berikut ini:
–  Setiap jumlah sampel-per-pixel

–  CCITT kelompok 3 dan 4 FAX, Packbits, JPEG, LZW, Deflate, kompresi ThunderScan, dan gambar tidak terkompresi.

–  Logis, grayscale, diindeks warna, truecolor dan gambar hyperspectral.




– RGB, CMYK, CIELAB, ICCLAB spasi warna.

If the color image uses the CMYK color space, A is an M-by-N-by-4 array. To determine which color space is used, use imfinfo to get information about the graphics file and look at the value of thePhotometricInterpretation field. If a file contains CIELAB color data, imread converts it to ICCLAB before bringing it into the MATLAB workspace because 8- or 16-bit TIFF CIELAB-encoded values use a mixture of signed and unsigned data types that cannot be represented as a single MATLAB array.

–  Data dikelompokan dalam tiles atau scanlines.

Berikut ini format-specific syntaxes untuk file TIFF.

A = imread(…) returns color data that uses the RGB, CIELAB, ICCLAB, or CMYK color spaces. If the color image uses the CMYK color space, A is an M-by-N-by-4 array.

[…] = imread(…, ‘Param1’, value1, ‘Param2’, value2, …) uses parameter/value pairs to control the read operation. The following table lists the parameters you can use.
Parameter    Value
‘Index’    Positive integer specifying which image to read. For example, if you specify the value 3, imread reads the third image in the file. If you omit this argument, imread reads the first image in the file.
‘Info’

Structure array returned by imfinfo.

Daftar Spesifikasi Format Gambar

Berikut ini adalah Daftar dari Spesifikasi Format Gambar yang ada. Daftar dibuat berdasarkan urutan alpabet dari nama format dan fungsinya.

BMP — Windows Bitmap
JPEG — Joint Photographic Experts Group
PNG — Portable Network Graphics
CUR — Cursor File
JPEG 2000 — Joint Photographic Experts Group 2000
PPM — Portable Pixmap
GIF — Graphics Interchange Format
PBM — Portable Bitmap
RAS — Sun Raster
HDF4 — Hierarchical Data Format
PCX — Windows Paintbrush
TIFF — Tagged Image File Format
ICO — Icon File
PGM — Portable Graymap
XWD — X Window Dump

Membaca Image dari file Grafik

Untuk membaca image pada Software Matlab dibutuhkan sebuah syntax yang berbeda beda pada masing masing file gambar. Seperti kita ketahui bahwa gambar mempunyai berbagai macam format, seperti: BMP,JPEG, PNG,CUR, JPEG 2000, PPM, GIF, PBM, RAS, HDF4, PCX, TIFF, ICO, PGM, XWD.




Untuk membaca skala keabuan (Grayscale) atau gambar berwarna dari sebuah file tertentu dengan menggunakan sebuah string dari nama file, syntax yang digunakan A=imread(namafile, fmt). Jika file tersebut bukan dari folder yang ada atau folder di MATLAB path, maka harus dilengkapi dengan namapath nya.

Teks dengan format string fmt merupakan jenis file dengan format standar. Sebagai contoh File dengan format “gif” adalah file untuk format Graphics Interchange. Untuk jelasnya bisa melihat daftar format gambar berikut fungsinya. imread tidak dapat menemukan sebuah file dengan namanya saja karena imread akan membaca file lengkap dengan ekstension formatnya contoh image-01.fmt.

Berikut ini adalah contoh dari syntax yang berfungsi membaca sebuah gambar.

[X, map] = imread(…)  //  Membaca index image pada sebuah nama file dimasukan ke dalan X dan digabungkan dalam sebuah peta warna. Nilai peta warna secara otomatis diskala ulang dalam sebuah skala [0,1].

[…] = imread(filename) //  Menyimpulkan sebuah format file dari isinya.

[…] = imread(URL,…) // membaca image dari internet atau URL yang dilengkapi dengan tipe protokol(e.g., http://).

[…] = imread(…,Param1,Val1,Param2,Val2…) // Parameter khusus untuk mengontrol berbagai macam karakteristik untuk format tertentu.

Syntax untuk membaca sebuah gambar imread

A = imread(filename, fmt)
[X, map] = imread(…)
[…] = imread(filename)
[…] = imread(URL,…)
[…] = imread(…,Param1,Val1,Param2,Val2…)

Sekian semoga membantu




Related Posts Plugin for WordPress, Blogger...