Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A is from: Please complete #4 by Matlab code %% #4 % % WRITE CODE BELOW: % Step 1: Set up kern-zeros(size(A)) and fill it

image text in transcribed

A is from:

image text in transcribed

Please complete #4 by Matlab code

%% #4 % % WRITE CODE BELOW: % Step 1: Set up kern-zeros(size(A)) and fill it with kern(1,1)=1. Now % use the command from the last slide of the lecture to plot the kernel % combined with A. Does it look close to the original image? % Step 2: Now fill some entries of kern with value 100. You can pick where % the 100 go. (i.e., kern(43,59)=100) Then plot the kernel combined with % A in a new figure. % Step 3: Try putting values of 100 along the first 100 diagonal entries % of kern. What happens now? Plot this in another new figure. % % % %% #1 % WRITE CODE BELOW: % Note: For all images use colormap(gray) % a) Load the image doge.jpeg into matrix A and view it with imagesc. % b) Load the image grays_torreys.png into matrix B and modify it from an % RGB image to an image with only 1-dimension of color, then view it with % imagesc in a new figure. % c) Load the image boston_common.png into matrix C and modify it so that % it has 1 dimension of color and plot it in another new figure. % d) Load the image bike.jpg into matrix D, but do not modify it. Plot it % in a new figure. A=imread('doge.jpeg') A=double(A) %% #4 % % WRITE CODE BELOW: % Step 1: Set up kern-zeros(size(A)) and fill it with kern(1,1)=1. Now % use the command from the last slide of the lecture to plot the kernel % combined with A. Does it look close to the original image? % Step 2: Now fill some entries of kern with value 100. You can pick where % the 100 go. (i.e., kern(43,59)=100) Then plot the kernel combined with % A in a new figure. % Step 3: Try putting values of 100 along the first 100 diagonal entries % of kern. What happens now? Plot this in another new figure. % % % %% #1 % WRITE CODE BELOW: % Note: For all images use colormap(gray) % a) Load the image doge.jpeg into matrix A and view it with imagesc. % b) Load the image grays_torreys.png into matrix B and modify it from an % RGB image to an image with only 1-dimension of color, then view it with % imagesc in a new figure. % c) Load the image boston_common.png into matrix C and modify it so that % it has 1 dimension of color and plot it in another new figure. % d) Load the image bike.jpg into matrix D, but do not modify it. Plot it % in a new figure. A=imread('doge.jpeg') A=double(A)

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_2

Step: 3

blur-text-image_3

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

What are HR ethics?

Answered: 1 week ago

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago