Question: ECE 5 2 5 6 Matlab project: Read and display an image and Affine transformation 1 Determine a process where you can acquire an image
ECE
Matlab project: Read and display an image and Affine transformation
Determine a process where you can acquire an image and use Matlab commands to get an image into Matlab. Use the command imread.
Read in an image and display it An image can be displayed using the command imagea where is the variable that contains the image. The image command usually assigns intensity levels between and The colormap command allows various look up tables to be used. To display an image in grayscale, use the command colormapgray Values greater than are mapped to white, and below are mapped to black. This can be inconvenient so the imagesc command may be used. This command automatically scales the display. The largest value of the image is set to white, and the lowest is set to black with a total of intensity levels.
In addition, you can set the scaling to whatever you want. The example below scales an image between and Anything less than gets mapped to black, and anything greater than gets mapped to white.
clims ;
imagescimage clims
Note that the value of the variable doesn't change in any of these examples, only the display on the screen.
Make yourself familiar with axis commands such as: "image," "off," etc. to make the display of the image look better.
Read in an image and scale the intensity values from Set the maximum value to and the minimum to
Add noise to the image with a mean of and standard deviation of using the randn command. Take the average of noisy versions of the original using independent noise samples randn commands for values of and and compare the result to the original image using the meansquared error MSE Does the MSE decrease with or the
The MSE is a scalar and is calculated as original image averaged image
Affine transformation. Read in an image, and rotate and scale it by degrees and a scale of in all directions.
Turn in the following:
Cover page indicating: name, course, project number.
A brief explanation of what you did.
Image used in part
MSE vs N for noisy images.
Result of affine transformation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
