KEMBAR78
Lecture 04 | PDF | Image Resolution | Interpolation
0% found this document useful (0 votes)
85 views32 pages

Lecture 04

The document discusses digital image fundamentals, including image sampling and quantization as well as different interpolation methods. It explains that spatial resolution refers to the smallest discernible detail in an image, while intensity resolution refers to the smallest change in intensity levels. Common interpolation methods like nearest neighbor, bilinear, and bicubic interpolation are used to estimate pixel values during operations like zooming and rotation. Bilinear interpolation uses a weighted average of pixels in the nearest 2x2 neighborhood to estimate values at unknown pixel locations.

Uploaded by

MaHedy AL HaSan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views32 pages

Lecture 04

The document discusses digital image fundamentals, including image sampling and quantization as well as different interpolation methods. It explains that spatial resolution refers to the smallest discernible detail in an image, while intensity resolution refers to the smallest change in intensity levels. Common interpolation methods like nearest neighbor, bilinear, and bicubic interpolation are used to estimate pixel values during operations like zooming and rotation. Bilinear interpolation uses a weighted average of pixels in the nearest 2x2 neighborhood to estimate values at unknown pixel locations.

Uploaded by

MaHedy AL HaSan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

Digital Image Fundamentals

(Basic Concept)

Rizoan Toufiq1

1 Assistant Professor

Department of Computer Science & Engineering


Rajshahi University of Engineering & Technology
rizoantoufiq@yahoo.com

Course Title: Digital Image Processing


July 3, 2018

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 1 / 32


Overview

1 Image Sampling and Quantization


Spatial and Intensity Resolution
Image Interpolation
Nearest Neighbor Interpolation
Bilinear Interpolation
Bicubic Interpolation

2 Referred Books

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 2 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Intuitively, spatial resolution is a measure of the smallest discernible
detail in an image.
Quantitatively, spatial resolution can be stated in a number of ways,
with line pairs per unit distance, and dots (pixels) per unit distance
being among the most common measures.
Suppose that we construct a chart with alternating black and white
vertical lines,
each of width = W units (W < 1).
The width of a line pair is thus 2W ,
1
Total line pairs per unit distance = 2W

Question: If the width of a line is 0.1 mm, then total line pairs per
mm = ?
1
Solution: 2×0.1 = 10
2 =5
Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 3 / 32
Image Sampling and Quantization

Spatial and Intensity Resolution


In the printing and publishing industry, dots per unit distance is a
measure of image resolution used.
Example: In the U.S., this measure usually is expressed as dots per
inch(dpi).
Sampling is the principle factor determining the spatial resolution of
an image.

The key point in the preceding paragraph is that measures of


spatial resolution must be stated with respect to spatial
units.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 4 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Intensity (Gray-Level) resolution similarly refers to the smallest dis-
cernible change in intensity level.
It is common practice to refer to the number of bits used to quantize
intensity as the intensity resolution.
For example, it is common to say that an image whose intensity is
quantized into 256 levels has 8 bits of intensity resolution.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 5 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Example : Illustration of the effects of reducing image spatial resolu-
tion

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 6 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


The images in Figs. (a) through (d) are shown in 1250, 300, 150,
and 72 dpi, respectively.
Naturally, the lower resolution images are smaller than the original.
For example, the original image is of size 3692 × 2812 pixels, but the
72 dpi image is an array of size 213 × 162

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 7 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


It is possible to improve on the results of Fig. (d) by the choice of
interpolation method used.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 8 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Example : Typical effects of varying the number of intensity levels in
a digital image.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 9 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


The 32-level image in Fig. 2.21(d), however, has an imperceptible
set of very fine ridge-like structures in areas of constant or nearly
constant intensity (particularly in the skull).
This effect, caused by the use of an insufficient number of intensity
levels in smooth areas of a digital image, is called false contouring,
so called because the ridges resemble topographic contours in a map.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 10 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Example : Typical effects of varying the number of intensity levels in
a digital image.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 11 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Huang [1965] attempted to quantify experimentally the effects on
image quality produced by varying N and k simultaneously.

Database

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 12 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Sets of these three types of images were generated by varying N and
k, and observers were then asked to rank them according to their
subjective quality.
Results were summarized in the form of so-called isopreference curves
in the Nk-plane.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 13 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


The key point of interest in the context of the present discussion is
that isopreference curves tend to become more vertical as the detail
in the image increases.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 14 / 32


Image Sampling and Quantization

Spatial and Intensity Resolution


Larger values for N and k, which implies better picture quality.
Images with a large amount of detail only a few intensity levels may be
needed.

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 15 / 32


Image Sampling and Quantization

Image Interpolation
Zooming, shrinking, rotating, and geometric corrections.
Interpolation is the process of using known data to estimate values at
unknown locations.
Nearest Neighbor Interpolation
Bilinear Interpolation
Bicubic Interpolation
Bicubic interpolation is the standard used in commercial image editing
programs, such as Adobe Photoshop and Corel Photo paint

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 16 / 32


Image Sampling and Quantization

Image Interpolation: Nearest Neighbor

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 17 / 32


Image Sampling and Quantization

Image Interpolation: Nearest Neighbor

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 18 / 32


Image Sampling and Quantization

Image Interpolation: Nearest Neighbor

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 19 / 32


Image Sampling and Quantization

Image Interpolation: Nearest Neighbor

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 20 / 32


Image Sampling and Quantization

Image Interpolation: Bilinear Interpolation


Let (x,y) denote the coordinates of the location to which we want to
assign an intensity value (think of it as a point of the grid described
previously), and let v(x,y) denote that intensity value. For bilinear
interpolation, the assigned value is obtained using the equation

v (x, y ) = ax + by + cxy + d

Where four coefficient are determined from four equations in four


unknown that can be written using four nearest neighbor of point
(x,y).

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 21 / 32


Image Sampling and Quantization

Image Interpolation: Bilinear Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 22 / 32


Image Sampling and Quantization

Image Interpolation: Bilinear Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 23 / 32


Image Sampling and Quantization

Image Interpolation: Bilinear Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 24 / 32


Image Sampling and Quantization

Image Interpolation: Bilinear Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 25 / 32


Image Sampling and Quantization

Image Interpolation: Bilinear Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 26 / 32


Image Sampling and Quantization

Image Interpolation: Bilinear Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 27 / 32


Image Sampling and Quantization

Image Interpolation: bicubic Interpolation


Involves the sixteen nearest neighbors of a point.
The intensity value assigned to point (x,y) is obtained using the equa-
tion
3 X
X 3
v (x, y ) = aij x i y j
i=0 j=0

where the sixteen coefficients are determined from the sixteen equa-
tions in sixteen unknowns that can be written using the sixteen
nearest neighbors of point (x,y).

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 28 / 32


Image Sampling and Quantization

Image Interpolation: bicubic Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 29 / 32


Image Sampling and Quantization

Image Interpolation: bicubic Interpolation

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 30 / 32


Referred Books

Rafael C. Gonzalez and Richard E. Woods


Digital Image Processing
Third Edition
William K. Pratt
Digital Image Processing
Third Edition
Kenneth R. Castleman
Digital Image Processing

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 31 / 32


The End

Rizoan Toufiq (Assistant Prof.,CSE,RUET) Digital Image Fundamentals July 3, 2018 32 / 32

You might also like