Answered step by step
Verified Expert Solution
Question
1 Approved Answer
***MATLAB question***. Please help with the code for this image processing assignment. Im not sure how to attach TheDailyShow image specified but any image should
***MATLAB question***. Please help with the code for this image processing assignment. Im not sure how to attach TheDailyShow image specified but any image should work for this. Thank you!
1. Purpose: The purpose of this lab is to introduce you to some basic concepts in image processing. You will learn how to read and display an image in MATLAB. You will perform: Simple edge detection on an image provided as well as on an image of your own. - - You will scale an image to create its thumbnail version. 2. Background Digital images consist of pixels (picture elemens). When the pixels are placed close to each other, such as in an image viewed on a computer display or in a printed paper, appears to be continuous The number of pixels per inch (ppi) varies with an application. Some monitors can only display 72 pixels per inch (ppi). For publishing. 200-1200 ppi is often required. Laser printers are usually capable of 300- 600 ppi The brightness and color information for each pixel is represented by a number in a two-dimensional array (matrix). The location in the matrix corresponds to the location of a pixel in the image. For example. X[11] (usually) identifies the pixel located in the upper left corner. as shown in figure 1. The pixel values in an 8-bit gray scale image can take any value from 0 to 255. Usually black is encoded by a value of 0 and white by a value of 255 A color image is stored in a three-dimensional array, where the first plane in the 3d dimension represents the red pixel intensities, the second plane represents the green pixel intensities, and the third plane represents the blue pixel intensities. True color has 24 bits of resolution (8 bits for each of the red, green, and blue planes) Assignment 4 Guess how the following images look like when compared to the original image XIn.m] where 1SN, ISmsM Use DailyShow.jpg as the original image (i.e. XIn.m]). Verify your guesses by displaying resulting images of iLlii) in your roport, Use help fliplrand flipud) to see more information. Assignment 5 When an image is scaled up to a larger size, there is a question of what to do with the new spaces in between the original pixels. Taking a I -dimensional signal l02,4,6.4,20] for example suppose now we want to expand it by a factor of 2, then you can think of two common ways: () simply double each sample -value replication; and (ii) make the new samples half way between the previous samples-2 tap linear interpolation. The original signal and the up-scaled signals from the two methods are shown below. Now, write a MATLAB function that can expand the input image (DailyShow.jpg) with dimension NxM to a 2Nx2M image using linear interpolation. Display this 2Nx2M imass in Submit Hint: You can directly use interp20) provided by MATLAB. Figure 2 shows the concept of bilinear interpolation" that is used to deal with a 2-dimensional signal. Also, you can type help interp2 to see more information Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started