Image File Format HEADER IFD DATA n How

  • Slides: 14
Download presentation
Image File Format HEADER IFD DATA n How to read data ?

Image File Format HEADER IFD DATA n How to read data ?

n Need : n n Image Width Image Length Strip Offset Read the data…

n Need : n n Image Width Image Length Strip Offset Read the data…

n After get the data, can do any thing: n n n Convert to

n After get the data, can do any thing: n n n Convert to raw ASCII image Image processing

Intro to Vicwin n Overview n What is vicwin? n n Support : n

Intro to Vicwin n Overview n What is vicwin? n n Support : n n n Image processing library by Catenary Sys. Inc. JPEG, BMP, TIFF, GIF, PCX 1, 8, 24 bit function: n File handling, memory management, image processing, scanner etc

n Data Structure n n n Device Independent Image (DIB) Image Descriptor (Img. Des)

n Data Structure n n n Device Independent Image (DIB) Image Descriptor (Img. Des) How to retrieve information: n Image width, image height, image size, etc

n n In using vicwin, you are only allow to use for loading image.

n n In using vicwin, you are only allow to use for loading image. You can not use built in function for image manipulation.

n How Victor Image Differ from Windows DIBs n n Windows DIBs may be

n How Victor Image Differ from Windows DIBs n n Windows DIBs may be compressed or uncompressed, Vicwin can operate only on an uncompressed DIBs Windows allows DIBs to have 1, 4, 8, or 24 bits per pixel, Vicwin can used on 1, 8, 24 bits per pixel.

n Image Descriptor Format n n n Most import data structure Contains all information

n Image Descriptor Format n n n Most import data structure Contains all information necessary for vicwin to operate Img. Des-Describe the image

n typedeft struct { unsigned char huge *ibuff; unsigned stx, sty, endx, endy; unsigned

n typedeft struct { unsigned char huge *ibuff; unsigned stx, sty, endx, endy; unsigned buffwidth; RGBQUAD far *pallete; int colors, imgtype; BITMAPINFOHEADER far *bmh; HBITMAP h. Bitmap; n }

n Download the Vicwin from: n http: //gmm. fsksm. utm. my/~image

n Download the Vicwin from: n http: //gmm. fsksm. utm. my/~image

Using Victor Windows Library n n Scope – Using Delphi Call vicwin DLL using

Using Victor Windows Library n n Scope – Using Delphi Call vicwin DLL using Delphi Create one file anyname. pas These file contains : n n DLL calling Error codes, constant value Data structure Function and procedure

How to load vicwin? n There a few step : n n Install new

How to load vicwin? n There a few step : n n Install new component Or add vicwin. pas in each file that use it with USES vicwin

Delphi Your application Function prototype – vicwin. pas – interface layer Vic 32. dll

Delphi Your application Function prototype – vicwin. pas – interface layer Vic 32. dll

Basic architecture File Scanner Vicwin Image Img. Des Clipboard Loading image Processing View image

Basic architecture File Scanner Vicwin Image Img. Des Clipboard Loading image Processing View image