The document discusses how images are represented digitally in computers. It begins by describing how images are formed using cameras and the electromagnetic spectrum. It then explains that images are converted to digital form through sampling and quantization. Sampling means measuring image intensity at discrete points, while quantization represents these values as integers. The document provides examples of sampling an image at different rates and quantizing to different numbers of gray levels.
3. A SIMPLE MODEL OF IMAGE FORMATION
The scene is illuminated by a single source.
The scene reflects radiation towards the camera.
The camera senses it via chemicals on film.
4. PINHOLE CAMERA
This is the simplest device to form an image of a 3D
scene on a 2D surface.
Straight rays of light pass through a “pinhole” and
form an inverted image of the object on the image
plane.
5. CAMERA OPTICS
In practice, the aperture must be larger to admit more light.
Lenses are placed to in the aperture to focus the bundle of
rays from each scene point onto the corresponding point in
the image plane
6. WHAT IS LIGHT?
The visible portion of the electromagnetic (EM)
spectrum.
It occurs between wavelengths of approximately
400 and 700 nanometers.
7. SHORT WAVELENGTHS
Different wavelengths of radiation have different
properties.
The x-ray region of the spectrum, it carries sufficient
energy to penetrate a significant volume or material.
8. LONG WAVELENGTHS
Copious quantities of infrared (IR) radiation are
emitted from warm objects (e.g., locate people in total
darkness).
9. LONG WAVELENGTHS (CONT’D)
“Synthetic aperture radar” (SAR) imaging
techniques use an artificially generated source of
microwaves to probe a scene.
SAR is unaffected by weather conditions and clouds
(e.g., has provided us images of the surface of
Venus).
10. CCD (CHARGED-COUPLED DEVICE) CAMERAS
Tiny solid state cells convert light energy into
electrical charge.
The image plane acts as a digital memory that can be
read row by row by a computer.
11. FRAME GRABBER
Usually, a CCD camera plugs into a computer board
(frame grabber).
The frame grabber digitizes the signal and stores it in
its memory (frame buffer).
12. IMAGE DIGITIZATION
Sampling means measuring the value of an image at a finite
number of points.
Quantization is the representation of the measured value at the
sampled point by an integer.
16. SAMPLING AND QUANTIZATION
To convert the image to digital form, we have to
sample the function in both coordinates and in
amplitude. Digitizing the coordinate values is called
sampling. Digitizing the amplitude values is called
quantization.
19. The one-dimensional function in Fig.2.16(b) is a plot of amplitude
(intensity level) values of the continuous image along the line
segment AB in Fig.2.16(a).
The random variations are due to image noise.
To sample this function,we take equally spaced samples along line
AB,as shown in Fig.2.16(c).
The spatial location of each sample is indicated by a vertical tick
mark in the bottom part of the figure.
The samples are shown as small white squares superimposed on
the function.
The set of these discrete locations gives the sampled function.
However,the values of the samples still span (vertically) a
continuous range of intensity values.
20. oIn order to form a digital function, the intensity values also must be converted
(quantized) into discrete quantities.
oThe right side of Fig. 2.16(c) shows the intensity scale divided into eight discrete
intervals, ranging from black to white.
oThe vertical tick marks indicate the specific value assigned to each of the eight
intensity intervals.
oThe continuous intensity levels are quantized by assigning one of the eight values
to each sample.
oThe assignment is made depending on the vertical proximity of a sample to a
vertical tick mark.
oThe digital samples resulting from both sampling and quantization are shown in
Fig.2.16(d).
oStarting at the top of the image and carrying out this procedure line by line
produces a two-dimensional digital image.
oIt is implied in Fig.2.16 that,in addition to the number of discrete levels used, the
accuracy achieved in quantization is highly dependent on the noise content of the
sampled signal.
24. imread() – reading an image with different
postfixes
imresize() – resizing an image to any given size
figure – opening a new graphical window
subplot(#of row, # of col, location) – showing
different plots/images in one graphical window
imshow() – displaying an image