EE4235 - 2k18 - L03 - Stages of Image Processing
EE4235 - 2k18 - L03 - Stages of Image Processing
EE4235 - 2k18 - L03 - Stages of Image Processing
of EEE, KUET
EE 4235
Digital Image Processing:
Introduction - History
Mohiuddin Ahmad
Dept. of EEE, KUET
Date: 21.08.2023
2
of
25
Key Stages in Digital Image Processing
Analog Image: An analog image is a continuous representation of visual
information in which the intensity or color values vary smoothly and continuously
across the image. Analog images are captured using traditional optical
processes and can take on an infinite number of values within a certain range.
They are typically captured on film or recorded on light-sensitive materials.
Example of an Analog Image: A photograph captured on traditional photographic
film is an example of an analog image. The image is formed by exposing the film
to light, and the resulting image contains a continuous range of tones and
colors.
Digital Image: A digital image is a discrete representation of visual information in
which the intensity or color values are represented as numerical values at
specific grid points (pixels). Digital images are created through sampling and
quantization processes, and they can be stored, manipulated, and transmitted
using digital technology.
Example of a Digital Image: A photograph captured with a digital camera is an
example of a digital image. In this case, the image is captured using a sensor
that converts light into digital data. The image is made up of discrete pixels,
each represented by numerical values that indicate color and intensity.
3
of
25
Key Stages in Digital Image Processing
Analog Image Examples:
1. Photographic Film Prints: Traditional photographs developed from film negatives are analog
images. These images are created through chemical processes that capture light on the film's
emulsion.
2. Paintings and Drawings: Handcrafted artwork using paints, pencils, or other artistic media are
analog representations of visual scenes.
3. Printed Art: Images found in magazines, newspapers, books, and other printed materials that are
produced through traditional printing methods.
4. Analog Television Broadcasts: Analog TV signals that were transmitted over the airwaves
before the transition to digital broadcasting.
5. Analog Oscilloscope Displays: Graphs and waveforms displayed on analog oscilloscopes,
which use cathode ray tubes to visualize electronic signals.
6. Analog Photographs in Old Books: Older books that contain photographs, engravings, or other
printed images produced before the digital era.
7. Film Projector Slides: Images displayed using traditional film projectors in settings such as
presentations or home movie screenings.
8. Vinyl Record Covers: Album covers for vinyl records, which often feature analog artwork and
designs.
9. Analog Camera Pinhole Images: Images captured using pinhole cameras that don't have digital
sensors, producing unique analog images.
10. Analog Art Photography: Photography produced using alternative processes such as
cyanotype, tintype, or daguerreotype, which are considered analog due to their chemical nature.
4
of
25
Key Stages in Digital Image Processing
Digital image processing involves a series of key stages or steps to manipulate and analyze images using
digital techniques. These stages collectively form a comprehensive process for working with digital
images. The typical stages in digital image processing are as follows:
1. Image Acquisition: This stage involves capturing or obtaining the raw image data using devices like cameras, scanners,
satellites, or sensors. The acquired image may be in grayscale or color and could be captured in various environments or
conditions.
2. Image Preprocessing: Preprocessing aims to improve the quality and suitability of the raw image for subsequent processing. It
involves operations like noise reduction, contrast enhancement, and image normalization. Preprocessing helps ensure that the
input data is in a form that is easier to work with and more suitable for analysis.
3. Image Enhancement: Enhancement techniques modify pixel values to improve the visual quality of an image. Processes like
adjusting brightness, contrast, and sharpness, as well as applying color correction, are used to highlight specific features and
make the image more appealing.
4. Image Restoration: Restoration techniques focus on recovering lost or degraded image details caused by factors like noise, blur,
or compression artifacts. These techniques aim to restore the original image quality and improve its perceptual fidelity.
5. Image Segmentation: Segmentation involves dividing an image into meaningful regions or objects based on certain criteria like
color, intensity, or texture. This stage is important for isolating and identifying specific areas of interest.
6. Object Detection and Recognition: This stage involves identifying and locating objects or patterns of interest within an image.
Techniques like template matching, feature detection, and machine learning are commonly used for object detection and
recognition tasks.
7. Image Representation and Description: In this stage, the processed image is represented and described using specific features
or descriptors that capture its important characteristics. This representation can be used for further analysis or comparison.
8. Image Analysis and Interpretation: Analysis involves extracting meaningful information from the image representation. This
stage may include object counting, measuring object properties, and identifying relationships between objects.
9. Image Understanding: This is the final stage where the results of analysis and interpretation are used to draw conclusions, make
decisions, or take actions based on the information extracted from the image.
10. Color Image Processing: Color image processing deals with the analysis and manipulation of color information in images. It
includes color space conversion, color filtering, color correction, and various other techniques specific to working with color
images.
11. Image Compression: Compression methods are used to reduce the size of images for efficient storage, transmission, and
processing. Lossless and lossy compression techniques are applied to preserve image quality while reducing data size.
5
of
25
Key Stages in Digital Image Processing
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
6
of
25
Key Stages in Digital Image Processing
Image acquisition refers to the process of capturing visual data from the real world and converting it into a digital format that can be
stored and processed by computers or other digital devices. This process involves using various sensors, cameras, scanners, or other
devices to capture the visual information from the scene.
1. Face Recognition: Identifying and locating human faces within images or videos. This is used in social media tagging,
security systems, and photo organization applications.
2. Object Detection in Autonomous Vehicles: Recognizing pedestrians, vehicles, traffic signs, and obstacles in the
environment to enable safe navigation and decision-making for self-driving cars.
3. Retail Inventory Management: Identifying products on store shelves using cameras and tracking stock levels to manage
inventory.
4. Security and Surveillance: Detecting and tracking people, vehicles, and suspicious activities in surveillance footage for
security purposes.
5. Animal Tracking and Conservation: Recognizing and monitoring endangered species in their natural habitats using
camera traps and drones.
6. Industrial Automation: Identifying defective or faulty products on assembly lines to ensure quality control.
7. Medical Image Analysis: Detecting tumors, lesions, and anatomical structures in medical images such as X-rays, MRIs,
and CT scans.
8. Augmented Reality: Recognizing real-world objects or markers to overlay digital information or virtual objects on a user's
view.
9. Agriculture: Identifying and monitoring crop health, disease, and pests in agricultural fields using aerial imagery.
10. Retail Checkout Automation: Automatically identifying and tallying items in a shopping cart using camera-based systems.
11. Artificial Intelligence Assistants: Recognizing objects in a user's environment to provide context-aware information and
assistance.
12
of
25
Key Stages in Digital Image Processing
Image representation and description refer to the process of capturing the essential characteristics
of an image in a structured and informative way. Image representation involves transforming the
raw pixel values of an image into a more compact and meaningful format, while image description
involves describing the content or features of an image using natural language or structured data.
1. Color Histogram: Representing an image by counting the occurrences of different color values
and creating a histogram. This can help in understanding the color distribution of the image.
2. Bag of Visual Words: This technique involves creating a vocabulary of visual words (features)
from a collection of images and then representing each image as a histogram of the frequencies
of these visual words.
3. Feature Vectors: Extracting features from images using techniques like edge detection, texture
analysis, or local descriptors. These features are then combined into a vector that represents the
image's visual characteristics.
4. Convolutional Neural Networks (CNNs): CNNs learn hierarchical features from images by using
convolutional layers. These learned features can be used as a compact representation of the
image's content.
5. Principal Component Analysis (PCA): Reducing the dimensionality of image data while
retaining as much of the original information as possible. This can help in creating a more concise
representation of images.
13
of
25
Key Stages in Digital Image Processing
Image Description:
1. Captioning: Generating descriptive captions for images using natural language. For example,
generating a caption like "A sunny day at the beach with people enjoying the ocean and sand."
2. Image Metadata: Associating metadata with an image, such as location, date, and relevant
keywords, to provide contextual information.
3. Semantic Segmentation Masks: Describing the objects in an image using pixel-level masks that
indicate the boundaries and locations of different objects or regions.
4. Structured Annotations: Describing images with structured data formats, such as bounding
boxes around objects or keypoints on human poses.
5. Visual Question Answering (VQA): Generating textual descriptions in response to questions
about the content of an image. For example, answering a question like "What color is the car in
the image?"
6. Image Tags and Labels: Assigning descriptive tags or labels to images, which can be used for
search and categorization.
7. Attribute-based Description: Describing images based on specific attributes or characteristics,
such as "red dress," "green trees," etc.
Both image representation and description are essential for various applications, including image
retrieval, content-based search, image understanding, and more. These techniques help bridge
the gap between the visual nature of images and the textual or structured representations that are
more suitable for machine analysis and human interaction.
14
of
25
Key Stages in Digital Image Processing
Image compression is the process of reducing the amount of data required to represent an image
while attempting to maintain the quality and perceptual integrity of the original image. The goal of
image compression is to efficiently store or transmit images using less storage space or
bandwidth, making them easier to manage, share, and transmit over networks.
1. Lossless Compression: In lossless compression, the original image can be perfectly reconstructed from the
compressed data. No information is lost during compression, making it suitable for situations where preserving
image quality is critical. Examples of lossless compression techniques include:
1. Run-Length Encoding (RLE): Replacing sequences of repeated pixel values with a single value and a count.
2. Huffman Coding: Assigning shorter codes to frequently occurring pixel values and longer codes to less
frequent values.
3. Lempel-Ziv-Welch (LZW): A dictionary-based compression method that replaces repeated patterns with
shorter codes.
2. Lossy Compression: In lossy compression, some amount of image data is discarded to achieve higher
compression ratios. While there is a loss of quality, the compression methods are designed to minimize perceptual
differences. Lossy compression is often used for applications where some loss of quality is acceptable, such as
multimedia streaming and storage. Examples of lossy compression techniques include:
1. JPEG (Joint Photographic Experts Group): A widely used lossy compression format for photographs and
natural images. It achieves compression by quantizing color and spatial information.
2. WebP: A modern lossy and lossless image format developed by Google that aims to provide better
compression efficiency than JPEG and PNG.
3. MPEG (Moving Picture Experts Group): A suite of standards for video and audio compression that includes
lossy compression methods for images within videos.
15
of
25
Key Stages in Digital Image Processing
Image compression
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
18
of
Key Stages in Digital Image Processing:
25 Image Enhancement
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
19
of
Key Stages in Digital Image Processing:
25 Image Restoration
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
20
of
Key Stages in Digital Image Processing:
25 Morphological Processing
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
21
of
Key Stages in Digital Image Processing:
25 Segmentation
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
22
of
Key Stages in Digital Image Processing:
25 Object Recognition
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
23
of
Key Stages in Digital Image Processing:
25 Representation & Description
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
24
of
Key Stages in Digital Image Processing:
25 Image Compression
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
25
of
Key Stages in Digital Image Processing:
25 Colour Image Processing
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression