Question: I need help with the coding for Matlab. All I have right now is: RGB=imread('peppers.jpg'); %imshow(RGB); Red=RGB; Green=RGB; Blue=RGB; Red(:,:,2:3)=0; subplot(2,2,1); imshow(RGB); title('Input Image'); Green(:,:,1)=0;

 I need help with the coding for Matlab. All I haveright now is: RGB=imread('peppers.jpg'); %imshow(RGB); Red=RGB; Green=RGB; Blue=RGB; Red(:,:,2:3)=0; subplot(2,2,1); imshow(RGB); title('Input

I need help with the coding for Matlab. All I have right now is:

RGB=imread('peppers.jpg'); %imshow(RGB); Red=RGB; Green=RGB; Blue=RGB;

Red(:,:,2:3)=0;

subplot(2,2,1);

imshow(RGB);

title('Input Image');

Green(:,:,1)=0; Green(:,:,3)=0;

subplot(2,2,2);imshow(Red);title('Red Component'); subplot(2,2,3);imshow(Green);title('Green Component');

Blue(:,:,1)=0; Blue(:,:,2)=0;

subplot(2,2,4);imshow(Blue);title('Blue Component');

I need help to quantize the image to be represented with 4 bits, with RGB pixel in an integer from 0 to 15.

1 Problem. Images on Matlab Use the command: "imread" to read the JPG image "peppers.jpg" and plot the Red, Green and Blue channel separately. Notice how the image array uses data type uint8 for each RGB pixel i.e. each value is stored as 1-byte (8-bit) unsigned integer that goes from 0 to 255. Quantize the image to be represented with only 4 bits i.e. each RGB pixel should now be an integer going from 0 to 15. In other words, replicate result of Fig 3.15(c) on slide 20 of the "Introduction" chapter. Show your results. 1 Problem. Images on Matlab Use the command: "imread" to read the JPG image "peppers.jpg" and plot the Red, Green and Blue channel separately. Notice how the image array uses data type uint8 for each RGB pixel i.e. each value is stored as 1-byte (8-bit) unsigned integer that goes from 0 to 255. Quantize the image to be represented with only 4 bits i.e. each RGB pixel should now be an integer going from 0 to 15. In other words, replicate result of Fig 3.15(c) on slide 20 of the "Introduction" chapter. Show your results

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!