DIGITAL IMAGE PROCESSING (COU 07601)
PRACTICAL ASSIGNMENT 01
Student Name: __________________________
Registration Number: ____________________
Class: BENG23COE
Date: _________________________________
1. INTRODUCTION
Digital Image Processing is a field of computer science that focuses on the manipulation and
analysis of digital images using computational techniques. It is widely applied in areas such as
artificial intelligence, medical diagnostics, robotics, remote sensing, and security systems. This
practical assignment was conducted using GNU Octave to perform basic image processing
operations on a digital image.
2. OBJECTIVES
The objectives of this practical assignment were:
• To read and display a digital image in GNU Octave.
• To determine image properties such as dimensions and data type.
• To convert a color image into grayscale format.
• To apply image enhancement techniques.
• To evaluate the effects of brightness and contrast adjustments on image quality.
3. TOOLS USED
Software:
• GNU Octave
Input File:
• JPEG Image ([Link])
4. TASK 1: IMAGE ACQUISITION AND DISPLAY
4.1 Source Code
[Insert Screenshot of Task 1 Code]
4.2 Output
[Insert Screenshot of Original Image]
4.3 Results
Image Dimensions:
---
Image Data Type:
uint8
4.4 Analysis
The image was imported into GNU Octave using the imread() function. The image was then
displayed on the screen using the imshow() function. Image dimensions were obtained using
the size() function, while the class() function was used to identify the data type.
The image dimensions indicate the spatial resolution of the image, while the uint8 data type
indicates that pixel values are stored within the range of 0 to 255.
Observation:
The image was displayed successfully without distortion, confirming that the image acquisition
process was completed correctly.
Figure 1: Original image acquired and displayed in GNU Octave.
5. TASK 2: IMAGE CONVERSION
5.1 Source Code
[Insert Screenshot of Task 2 Code]
5.2 Output
[Insert Screenshot of Original and Grayscale Images]
5.3 Analysis
The rgb2gray() function was used to transform the RGB image into grayscale format. During this
process, the three color channels were combined into a single intensity channel.
Grayscale conversion reduces the amount of information that must be processed while
preserving the important structural details of the image.
Observation:
The grayscale image retained the shape and texture of objects while eliminating color
information. This simplification makes subsequent image processing operations more efficient.
Figure 2: Comparison between the RGB image and grayscale image.
6. TASK 3: IMAGE ENHANCEMENT
6.1 Source Code
[Insert Screenshot of Task 3 Code]
6.2 Output
[Insert Screenshot of Enhanced Images]
6.3 Analysis
Image enhancement was performed in two stages. First, brightness enhancement was applied
by increasing pixel intensity values. This improved the visibility of darker regions within the
image.
Second, contrast enhancement was performed by scaling pixel intensity values. This increased
the difference between light and dark regions, resulting in a more detailed image.
Observation
The brightness-enhanced image appeared more illuminated than the original image. The
contrast-enhanced image provided better visual separation of image features and improved
clarity.
Figure 3: Original image, brightness-enhanced image, and contrast-enhanced image.
7. RESULTS AND DISCUSSION
The experiment demonstrated that image processing techniques can significantly influence
image quality. Grayscale conversion reduced image complexity, while brightness and contrast
enhancement improved image visibility.
These techniques are important preprocessing steps in many computer vision and machine
learning applications where image quality directly affects system performance.
8. PRACTICAL APPLICATIONS
The methods implemented during this practical are used in:
• Artificial intelligence systems.
• Facial recognition technologies.
• Autonomous vehicle vision systems.
• Medical image analysis.
• Industrial inspection systems.
• Security and surveillance monitoring.
• Satellite and aerial image processing.
These applications rely on image enhancement techniques to improve the accuracy and
reliability of automated analysis.
9. CONCLUSION
This practical assignment successfully implemented basic Digital Image Processing operations
using GNU Octave. The image was acquired, analyzed, converted to grayscale, and enhanced
through brightness and contrast adjustments
The results demonstrated how image processing techniques can improve image quality and
prepare images for advanced analysis. The knowledge gained from this practical forms a
foundation for more advanced topics such as image segmentation, feature extraction, pattern
recognition, and computer vision.