1 / 5

Exploring Image Processing in MATLAB: Interactive Questions and Answers

This lecture slide set by Dr. Cynthia Lee from UCSD introduces programming in MATLAB with a focus on image processing concepts. Through practical exercises, participants will work with image segmentation and color manipulation using the `imread`, `imshow`, and array indexing functions. The slides include interactive questions about code segments that utilize an example image ('rainbow.jpg'), helping learners grasp the fundamentals of MATLAB while visualizing their coding results. Ideal for students and educators in computer science.

nellie
Télécharger la présentation

Exploring Image Processing in MATLAB: Interactive Questions and Answers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.Based on a work at www.peerinstruction4cs.org.

  2. Which image results from the following code segment: >> im = imread('rainbow.jpg');>> part = im(1:floor(end/2),1:end,:);>> imshow(part) a) c) b) d) e) None/other/error

  3. Which image results from the following code segment: >> im = imread('rainbow.jpg');>> part = im(1:floor(end/2),floor(end/2)+1:end,:);>> imshow(part) a) c) b) d) e) None/other/error

  4. RGB color reference Which image results from the following code segment: >> im = imread('rainbow.jpg'); >> im(1:floor(end/2),1:floor(end/2),1) = 0; >> imshow(im) a) c) b) d) e) None/other/error

  5. Which code segment takes the image on the left and transforms it to the image on the right? >> im = imread('rainbow.jpg'); >> z = zeros(size(im(:,:,1))); >> cat(3,im(:,:,1),z,z); >> imshow(ans) >> im = imread('rainbow.jpg'); >> z = zeros(size(im(:,:,1))); >> cat(3,z,im(:,:,2),z); >> imshow(ans) >> im = imread('rainbow.jpg'); >> z = zeros(size(im(:,:,1))); >> cat(3,z,z,im(:,:,3)); >> imshow(ans) a) c) b) d) None/other/error RGB color reference

More Related