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 to Expert-Tailored 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

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago