2-Digital Image RepresentationFile
2-Digital Image RepresentationFile
in the computer?
Digital Image
Representation
Vanishing
line
Vanishing
Vanishing Point
o oVanishing Point
Line
Vanishing
Vanishing
point
point
. f
. Z Y
v
Camera
.u
Center
(tx, ty, tz)
u
p=
v
◼ The second problem is how to understand image ❑ object surface reflectance properties (given by the
brightness. surface material, microstructure and marking),
❑ illumination properties,
◼ The only information available in an intensity
image is brightness of the appropriate pixel, ❑ and object surface orientation with respect to a viewer
and light source.
which is dependent on a number of independent
factors such as
◼ Image processing often deals with static images, ◼ Computerized image processing uses digital
in which time t is constant. image functions which are usually represented by
◼ A monochromatic (單色)static image is matrices, so co-ordinates are integer numbers.
represented by a continuous image function f(x,y) ◼ The range of image function values is also limited;
whose arguments are two co-ordinates in the by convention, in monochromatic images the
plane lowest value corresponds to black and the highest
to white.
◼ Brightness values bounded by these limits are
gray levels.
◼ The image quantization assigns to each ◼ The finer the sampling (i.e., the larger M and N)
continuous sample an integer value. and quantitation (the larger K) the better the
◼ The continuous range of the image function f(x,y) approximation of the continuous image function
is split into K intervals. f(x,y).
◼ 128*128
◼ 256*256
◼ 1024*1024
256 gray levels (8bits/pixel) 32 gray levels (5bits/pixel) 16 gray levels (4bits/pixel) 8 gray levels (3bits/pixel) 4 gray levels (2bits/pixel) 2 gray levels (1bits/pixel)
𝑓(𝑥, 𝑦)=256 𝑓(𝑥, 𝑦)=32 𝑓(𝑥, 𝑦)=16
Common image file formats ◼ TIFF (Tagged Image File Format): it is used on
all popular platforms and is often the format used
by scanners.
◼ GIF (Graphic Interchange Format): has been used
❑ Supports multiple images with 1 to 24 bits of color per
to encode a huge number of images in the internet
pixel.
and databases.
❑ Options are available for either lossy or lossless
❑ Relatively easy to work with compression
❑ Cannot be used for high-precision (高精度)color,
since only 8-bits are used to encode color
◼ Normally 256 color values available
◼ 16-color is another option
❑ Non-lossy compression is available