Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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;

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions