Chapter 6 Image Processing
Chapter 6 Image Processing
Publishing
Christopher James,
TA; ICDL Trainer; Computer Engineer
Department of Informatics
Office: Server Room - Admin Block
Christopher James 1
Image Processing
• Technique of analyzing, manipulating, and interpreting images
using mathematical and computer algorithms.
• Converting an image into digital form, performing operations on
it, and extracting meaningful information from it.
• Used in medicine, astronomy, remote sensing, and security
systems.
Christopher James 2
Steps in Image Processing
Christopher James 3
Steps in Image Processing (Input/importing)
• Used for image acquisition
• The acquired image is then converted into a digital form
• Stored in a computer for further processing
Christopher James 4
Steps in Image Processing (Preprocessing)
• Removing any noise or artifacts that may be present in
the image.
• Various techniques such as filtering and smoothing can
be used to improve the quality of the image.
Christopher James 5
Steps in Image Processing (Analyzing and manipulating)
Christopher James 6
Steps in Image Processing (Output)
• Producing a report based on the analysis of the image.
• Include information such as the dimensions of the
image, the colors used, the patterns detected, and other
relevant details.
• Include processed images that have been modified to
enhance certain features or to remove unwanted
elements.
• Used for various purposes, such as research, analysis,
and communication.
Christopher James 7
Purpose of Image Processing
Christopher James 8
Visualization in Image Processing
Christopher James 9
Image Sharpening and Restoration
Christopher James 10
Image Retrieval
Christopher James 11
Measurement of Pattern
Christopher James 12
Image Recognition
Christopher James 13
Method of Image Processing
Christopher James 14
Analog image processing
• Manipulation of physical photographs.
• Use of chemicals and physical tools to modify the image.
• Time-consuming process that can lead to loss of image quality
due to repeated handling.
• Allows for physical manipulation of photographs, giving the artist
greater control and creativity.
• It can produce unique and original results.
• It requires specialized equipment and chemicals that can be
expensive and difficult to obtain.
• Analog processing may not be suitable for certain types of images
or applications.
Christopher James 15
Digital image processing
• Manipulation of digital images using computer algorithms
• Use of software tools to modify and enhance images.
• Fast and efficient process that can be automated and repeated
without loss of image quality.
• It offers greater flexibility in adjusting and enhancing images.
• Easily stored, shared, and distributed through electronic media.
• Can result in loss of image quality if not done correctly or if
compressed too much.
• Limited by the resolution and quality of the original digital image.
• Limited by the software and hardware available to the user.
Christopher James 16
Techniques of Image Processing
Christopher James 17
Image Capture
Christopher James 18
Image Enhancement
Christopher James 19
Image Restoration
Christopher James 20
Image Segmentation
Christopher James 21
Object Detection and Recognition
Christopher James 22
Feature Extraction
Christopher James 23
Image Analysis
Christopher James 24
Image Compression
Christopher James 25
Image compression
Christopher James 26
Image Compression
Christopher James 27
Types of Image Compression
Lossy Compression
• Technique that removes some of the image data to reduce the file size.
• Reduce the file size of an image, but it can also result in a loss of image
quality.
• Common lossy compression formats include JPEG and GIF.
Lossless Compression
• Compresses the image data without losing any information.
• Used to preserve the quality of the image while reducing the file size.
• Common lossless compression formats include PNG and TIFF
Christopher James 28
Techniques for Compressing Images
Save for Web
• Optimizes images for the web by reducing the file size while
maintaining image quality
• Adjustable parameters include image format, color depth,
resolution, and compression level
Image Size
• Reduces file size by reducing image dimensions
• Adjustable parameters include width, height, and
resampling method
Christopher James 29
Techniques for Compressing Images
JPEG Compression
• Supports lossy compression
• Adjusting quality level reduces file size
• Over-compressing can result in visible artifacts and loss of detail
Use of Smart Objects
• Layers in Photoshop that preserve original image data for non-destructive
changes
• Allows for optimizing images for specific purposes such as web or print
• Apply filters and adjustments without affecting the original image
Use of Plugins
• TinyPNG compresses PNG and JPEG images while maintaining quality
• WebP plugin converts images to the WebP format, optimized for the web
Christopher James 30
Class Activity
You are a research scientist working on a project to develop a new imaging system
for use in medical diagnostics. The system will need to be able to capture high-
quality images of the human body and analyze them to detect any abnormalities or
diseases. The project team is currently discussing the different techniques that can
be used for image processing and is divided on whether to use digital or analog
techniques.
i. Explain the main differences between digital and analog image processing
techniques and the advantages and disadvantages of each.
ii. Explain how digital technique for image enhancement can be used to improve
the diagnostic accuracy of the imaging system.
iii. Describe a specific analog technique for image enhancement and explain how
it can be used in the context of the medical imaging system.
Christopher James 31
Questions?
Christopher James 35
Christopher James,
TA; ICDL Trainer; Computer Engineer
Department of Informatics
Institute of Accountancy Arusha (IAA)
cjames@iaa.ac.tz
https://iaa.ac.tz
Christopher James 36