Digital image processing assgt
Digital image processing assgt
ID NO: DBU1700050
DECEMBER, 2024
DEBREBIRHAN, ETHIOPIA
1
1. INTRODUCTION
1.1. DIGITAL IMAGE PROCESSING
In today’s digital life, digital images are everywhere around us. An image is a visual
representation of an object, a person, or a scene. A digital image is a two-dimensional function f
(x, y) that is a projection of a 3-dimesional scene into a 2-dimensional projection plane, where x,
y represents the location of the picture element or pixel and contains the intensity value. When
values of x, y and intensity are discrete, then the image is said to be a digital image.
A digital image can be stored as a file in a computer data store on a variety of media, such as a
hard disk, memory stick, CD, etc. It can be displayed in black and white or in color on a
computer monitor as well as in hard copy output such as film or print. It may also be output as a
simple array of numbers for numerical analysis. the process of receiving and analyzing visual
information by digital computer is called digital image processing.
2
1.2. History of Digital Image Processing
The history of digital image processing is a fascinating journey that has evolved alongside
advancements in technology and computing capabilities. Digital image processing can trace its
roots back to the 1920s and 1930s when the first attempts were made to digitize images for
transmission and storage. However, it was during the 1950s and 1960s that significant progress
was made with the development of digital computers, which allowed for more sophisticated
image processing techniques.
In the early days, digital image processing was primarily used in military and aerospace
applications for tasks such as reconnaissance and intelligence gathering. As computing power
increased and imaging technologies improved, the field expanded into various other domains.
The 1970s and 1980s saw the emergence of key algorithms and techniques that laid the
foundation for modern digital image processing. Important milestones during this period
included the development of image enhancement techniques, image compression algorithms, and
the introduction of image segmentation and pattern recognition methods.
With the rise of personal computers in the 1990s, digital image processing became more
accessible to a wider audience. This accessibility led to its integration into various consumer
products and applications, such as digital cameras, image editing software, and medical imaging
equipment.
In recent years, the field of digital image processing has seen rapid growth and innovation driven
by advances in artificial intelligence, deep learning, and computer vision. These technologies
have revolutionized how images are processed, analyzed, and understood, leading to
breakthroughs in areas such as facial recognition, autonomous vehicles, and medical diagnostics.
Today, digital image processing continues to evolve at a rapid pace, with researchers and
practitioners exploring new frontiers in areas like image understanding, 3D imaging, and real-
time processing. As we look to the future, it is clear that digital image processing will play an
increasingly vital role in shaping how we interact with visual information in our digital world.
3
Figure 1. 2. Digital image processing
Digital image formation involves the process of creating a digital representation of an image
from the real world.
1. Image Acquisition: In this step, an image is captured using devices such as digital
cameras or scanners. The real-world scene is sampled and converted into a digital format
consisting of pixels (picture elements).
2. Sampling: The continuous real-world image is discretized into a grid of pixels during the
sampling process. The resolution of the image is determined by the number of pixels
captured.
3. Quantization: Each sampled pixel's intensity values are quantized to represent discrete
levels of brightness. This process converts the continuous range of intensity values into a
finite set of levels, usually represented in binary form.
4. Preprocessing: Preprocessing steps such as noise reduction, color correction, and
resizing may be applied to the acquired image to enhance its quality and prepare it for
further processing.
5. Compression: Compression techniques are often employed to reduce the size of the
digital image file for efficient storage and transmission. Common compression methods
include lossless (e.g., PNG) and lossy (e.g., JPEG) compression.
4
6. Storage: The processed digital image is stored in a file format such as JPEG, PNG, or
TIFF on a computer or other storage devices.
7. Display: The digital image can be displayed on various output devices such as computer
monitors, mobile screens, or printed on paper.
1.4. Typical Image Processing Operations
Image processing involves a number of techniques and algorithms. The most representative
image processing operations are:
A). Binarization: Many image processing tasks can be performed by converting a color image
or a grayscale image into binary in order to simplify and speed up processing. Conversion of a
color or grayscale image to a binary image having only two levels of gray (black and white) is
known as binarization.
B). Smoothing: A technique that is used to blur or smoothen the details of objects in an image.
(C). Sharpening: Image processing techniques, by which the edges and fine details of objects in
an image are enhanced for human viewing, are known as sharpening techniques.
5
(D). Noise Removal and De-blurring: Before processing, the amount of noise in images is
reduced using noise removal filters. Image removal technique can sometimes be used,
depending on the type of noise or blur in the image.
(E). Edge Extraction: To find various objects before analyzing image contents, edge
extraction is performed.
(F). Segmentation: The process of dividing an image into various parts is known as
segmentation.
6
1.5 Digital Image File Types or formats
There are a number of digital image file types available these days. The most commonly used
image file types are: JPEG, GIF, TIFF, PNG and BMP.
7
Figure 1.6.; Examples of different image types and their associated storage formats
8
4. Floating-point images:
are commonly stored in the TIFF image format or a more specialized, domain-
specific format (e.g. medical DICOM).
Although the use of floating-point images is increasing through the use of high
dynamic range and stereo photography, file formats supporting their storage
currently remain limited.
2.2. Components of an Image Processing System
An image processing system consists of various components that work together to manipulate
and analyze digital images. Here are the key components of an image processing system:
1. Image Acquisition:
The process of capturing digital images using devices such as cameras, scanners, or
sensors.
Conversion of analog signals (light) into digital images.
2. Image Preprocessing:
Includes various operations to enhance and prepare images for further processing.
Operations may include noise reduction, image restoration, color correction, and image
resizing.
3. Image Segmentation:
Dividing an image into meaningful parts or regions.
Used to separate objects from the background for further analysis.
This involves subdividing an image into constituent parts, or isolating certain aspects of
an image:
Finding lines, circles, or particular shapes in an image
In an aerial photograph, identifying cars, trees, buildings, or roads
4. Feature Extraction:
Identifying and extracting important features from images.
Features can include edges, textures, colors, shapes, or patterns.
9
5. Image Enhancement:
Improving the visual quality of images for better interpretation.
Techniques include contrast enhancement, brightness adjustment, and sharpening.
Sharpening or deblurring an out of focus image
Highlighting edges and Removing noise
6. Image Compression:
Reducing the size of digital images to save storage space and transmission bandwidth.
Lossy and lossless compression techniques are used to minimize data redundancy.
This may be considered as reversing the damage done to an image
by a known cause, for example: Removing of blur caused by linear motion, Removal of
optical distortions and removing periodic interference.
7. Image Restoration:
8. Image Analysis:
9. Pattern Recognition:
Identifying patterns or structures in images using algorithms and machine learning techniques.
Used for tasks like face recognition, handwriting recognition, and object tracking.
10
10. Image Understanding:
These components collectively form an image processing system that performs a wide range of
tasks to manipulate, analyze, and interpret digital images for various applications in fields like
medicine, surveillance, remote sensing, and multimedia.
1. Binary Images
Binary images are the simplest type of images and can take on two values, typically black and
white, or ‘0’ and ‘1’. A binary image is referred to as a 1 bit/pixel image because it takes only 1
binary digit to represent each pixel.
11
Fig 1.8 Binary Images
Gray _scale images are referred to as monochrome, or one-color image. They contain brightness
information only brightness information only, no color information. The number of different
brightness level available. The typical image contains 8 bit/ pixel (data, which allows us to have
(0-255) different brightness (gray) levels.
12
4. True color, or RGB.
Here each pixel has a particular color; that color being described by the amount of red, green,
and blue in it.
If each of these components has a range 0–255, this gives a total of 2553 = 16,777,216 different
possible colors in the image. This is enough colors for any image. Since the total number of bits
required for each pixel is 24, such images are also called 24-bit color images.
13
• Requires Color Look-Up Tables (LUTs)
• A 640 x 480 8-bit color image requires 307.2 KB of storage (the same as 8-bit
grayscale)
Figure 2.5 shows an indexed color image and a 4 × 4 detailed region, where each pixel shows the
index and the values of R, G, and B at the color palette entry that the index points to.
Image enhancement/restoration
Medical visualization- Inspection and interpretation of images obtained from x-ray
Industrial inspection, Automatic inspection of items on a production line and Inspection
of paper samples
Law enforcement- Fingerprint analysis
Remote sensing via satellites and other spacecrafts
Image transmission and storage for business applications
Radar, SONAR, Acoustic image processing
Agriculture, Satellite/aerial views of land, for example to determine how much land is
being used for different purposes, or to investigate the suitability of different regions for
different crops
14
summary
Digital image processing is a versatile field that focuses on the manipulation and analysis of
digital images using a variety of algorithms and techniques. At its core, digital images are
represented as matrices of pixels, each with a value corresponding to its intensity or color.
Spatial domain processing involves directly manipulating these pixel values, enabling techniques
like filtering for noise reduction or sharpening, geometric transformations, and image
enhancement. In contrast, frequency domain processing utilizes transforms like the Fourier
transform to operate on the image's frequency components, enabling applications such as
compression and restoration.
Key concepts in digital image processing include image segmentation, which partitions an
image into meaningful regions, and feature extraction, which identifies and quantifies relevant
characteristics like edges, shapes, and textures. These capabilities underpin many important
applications, from medical imaging and remote sensing to computer vision, security, and
entertainment. Underpinning the field are a wealth of sophisticated algorithms, including
convolution, transforms, statistical models, and increasingly, deep learning techniques.
15
References
4. Baxes, G. A. [1994]. Digital Image Processing: Principles and Applications, John Wiley
New York.
6. Andrews, H. C. and Hunt, B. R. [1977]. Digital Image Restoration, Prentice Hall, Engle-
7. Gregory A. Baxes. Digital Image Processing: Principles and Applications. John Wiley &
Sons, 1994
9. Scott E. Umbaugh. Computer Vision and Image Processing: A Practical Approach Using
CVIP Tools. Prentice-Hall, 1998.
Stefan Van Der Walt et al. “scikit-image: image processing in Python”. In: PeerJ 2 (2014),
e453.
16