Assignment 1
Assignment 1
CSC566
Student Name: MUHAMMAD ZAKWAN ARIF BIN MUHAMMAD TAJUDDIN
Student Id: 2021106387
Group: M3CS2306A
Semester: PART 6
Submission Date 1st December 2023, Friday
Task 1.1: Pixel Write a MATLAB program to:
operations
a) Convert an RGB image (pepper.png) into a grayscale
(10 marks) image using the luminance transformation;
b) Produce a histogram of the image in a) after has been
converted to a grayscale image.
c) Write a conclusion based on the histogram produced.
subplot(1, 3, 2);
imshow(filtered_15,
[min(image(:)),
max(image(:)]);
title('Filtered Pixel 15');
subplot(1, 3, 3);
imshow(filtered_22,
[min(image(:)),
max(image(:)]);
title('Filtered Pixel 22');
imshow(image,
[min(image(:))