An image is modeled as a function returning the light intensity at position .
Here:
- spatial coordinates of a point in the image
-
light intensity at that point, bounded between a minimum and maximum
Analog Image Model
are continuous and range over a bounded region. is defined at every point of that region and varies continuously.
Properties:
- Infinite spatial resolution
A value exists between any two points. - Continuous intensity
No fixed set of allowed values. - Not directly computable
Needs a discrete representation before a computer can store or process it.
Examples:
- Photographic film
- Image projected on the retina
- Analog video signal
Digital Image Model
A digital image is a discrete representation of an image, with a finite number of positions and a fixed number of intensity values.
- Finite grid of pixels
The spatial domain is an grid. Each cell covers a small finite region. - Fixed number of levels
The intensity of each cell is one of discrete levels.
is the intensity of cell , one of the levels. The digital image is the matrix of these values. Each element is a pixel.
- number of rows
- number of columns
- row index,
- column index,
-
number of intensity levels, usually for a bit depth
is the spatial resolution. An 8-bit grayscale image has levels, for black and for white.
Storage size in bits is for a single channel. A color image repeats this per channel.
In a computer program, an image is simply a matrix of integer values. Image processing means manipulating this matrix.