Question: Write a Matlab script that converts colour pictures into greyscale without using rgb2gray function. Please show comments Your file will contain a function called color2gray(input_dir,
Write a Matlab script that converts colour pictures into greyscale without using rgb2gray function. Please show comments

Your file will contain a function called color2gray(input_dir, output_dir). You may choose any colour images as input. Your function will perform the following: 1. Read images from argument input_dir 2. Convert each image to greyscale manually (do not use built-in functions). 3. Create a folder, defined by "output_dir. 4. Save greyscale images in the created folder
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
