DSP Matlab Lecture # 02
DSP Matlab Lecture # 02
(LECTURE # 02)
2
AGENDA
Read and Display Single Images
Read Two Images and Display
How to add two images
RGB to Gray Scale
3
imshow(a);
4
Objective:
To load and display an image named Babar.JPG in a MATLAB figure
window.
Usage:
This script is commonly used for:
• Viewing images in MATLAB for analysis or inspection.
• Visualizing the output of image processing techniques.
6
Objective:
•To load two images from the disk and display them in a single
figure window arranged horizontally.
Usage:
Customization:
Replace Smith.JPG and Cummins.JPG with other image files to
test with different inputs.
Modify the operation (e.g., imsubtract, immultiply) to explore
other arithmetic operations on images.
16
Customization:
Replace Smith.JPG with another image file to test with different inputs.
Add titles to the subplots for better clarity