Image Model

An image is modeled as a function I(x,y)I(x,y) returning the light intensity at position (x,y)(x,y).

Here:

(x,y)(x,y)
Here:
x,yx, y
spatial coordinates of a point in the image
I(x,y)I(x,y)

light intensity at that point, bounded between a minimum and maximum

Analog Image Model

x,yx, y are continuous and range over a bounded region. II 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 m×nm \times n grid. Each cell (i,j)(i,j) covers a small finite region.
  • Fixed number of levels
    The intensity of each cell is one of LL discrete levels.

I(i,j)I(i,j) is the intensity of cell (i,j)(i,j), one of the LL levels. The digital image is the matrix of these values. Each element is a pixel.

[I(0,0)I(0,1)⋯I(0,n−1)I(1,0)I(1,1)⋯I(1,n−1)⋮⋮⋱⋮I(m−1,0)I(m−1,1)⋯I(m−1,n−1)]\begin{bmatrix} I(0,0) & I(0,1) & \cdots & I(0,n-1) \\ I(1,0) & I(1,1) & \cdots & I(1,n-1) \\ \vdots & \vdots & \ddots & \vdots \\ I(m-1,0) & I(m-1,1) & \cdots & I(m-1,n-1) \end{bmatrix}
Here:
mm
number of rows
nn
number of columns
ii
row index, 0≤i≤m−10 \le i \le m-1
jj
column index, 0≤j≤n−10 \le j \le n-1
LL

number of intensity levels, usually L=2kL = 2^k for a bit depth kk

m×nm \times n is the spatial resolution. An 8-bit grayscale image has L=256L = 256 levels, 00 for black and 255255 for white.

Storage size in bits is m×n×km \times n \times k 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.

Written by November 3, 2026 2 min read
Was this helpful?