REPRESENTING DIGITAL IMAGES
•The image representation is by an array (matrix) composed of the numerical
values of f(x,y). This is the representation used for computer processing.
• In equation form, we write the representation of an m*n numerical array as
• The right side of this equation is a digital image represented as an array of real
numbers. Each element of this array is called an image element, picture element,
pixel, or pel.
11.
REPRESENTING DIGITAL IMAGES
•The origin of an image at the top left corner
• Choosing the origin of f(x,y) at that point makes sense mathematically because
digital images in reality are matrices.
• The center of an m × n digital image with origin at (0,0) and range to (m − 1, n − 1) is
obtained by dividing m and n by 2 and rounding down to the nearest integer.
• Ex, the center of an image of size 1023 × 1024 is at (511 ,512 ).
• The numbers of m and n have to be positive integers.
12.
PIXELS!
• Every pixelhas # of bits (k)
So, the gray intensities ( L ) that the pixel can hold, is calculated
according to a number of pixels it has (k). L= 2k
• Q: suppose a pixel has 1 bit, how many gray levels can it represent?
Answer: 2 intensity levels only, black and white. Bit (0,1) 0:black , 1:
white
• Q:suppose a pixel has 2 bit, how many gray levels can it represent?
Answer: 4 gray intensity levels 2bit (00, 01, 10 ,11).
• Now .. if we want to represent 256 intensities of grayscale, how many
bits do we need?
Answer: 8 bits which represents: 28=256
13.
SPATIAL AND INTENSITYRESOLUTION
• Intensity resolution:
Is the smallest discernible change in intensity level. ()
The more intensity levels used, the finer the level of detail discernable in an image.
Intensity level resolution is usually given in terms of the number of bits used to store each intensity
level.
Based on hardware considerations, the number of intensity levels usually is an integer power
of two.
The most common number is 8 bits, with 16 bits being used in some applications in which
enhancement of specific intensity ranges is necessary.
Intensity quantization using 32 bits is rare.
Number of
Bits
Intensity
Levels
Examples
1 2 0, 1
2 4 00, 01, 10, 11
4 16 0000, 0101, 1111
8 256 00110011, 01010101
16 65,536 1010101010101010