Question: Use lightness method to convert the image to grayscale in MatLab. Lightness method is (Max(R,G,B)+(minR,G,B))/2. Need to solve without using max or min functions. I=imread('cars.jpg');

Use lightness method to convert the image to grayscale in MatLab. Lightness method is (Max(R,G,B)+(minR,G,B))/2. Need to solve without using max or min functions.

Use lightness method to convert the image to grayscale in MatLab. Lightness

I=imread('cars.jpg'); R=I(:,:,1); G=I(:,:,2); B=I(:,:,3); gray imwrite(gray, 'gray.jpg') imshow(gray)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!