use the image file( with the square/circlecombination) and execute the following
ID: 2073721 • Letter: U
Question
use the image file( with the square/circlecombination) and execute the following steps in Matlab. You will have to repeat these steps (run your Matlab script a second time) to acquire the data for the second square/circle combination in the image.Be sure to comment (%) the steps in your Matlab script.
1.Convert the image to grayscale.
2.Calibrate the scale of image using the line marked 2 inches. Record thescale (i.e., pixelsper inch). For the second square/circle combination, use the line marked 5 inches and record the scale.
3.Measure the diagonal of the square. Note: the light square is 3 in x 3 in and the dark square is 2.5 in x 2.5 in.
4.Crop the image to just one square. Save the image.
5.Measure the signal to noise ratio of the circles compared to the square(background)
.
6.Calculate the contrast to noise ratio between the 2 circles within the square
Line equals 2 inches Line equals 5 inchesExplanation / Answer
the results when semicolon is placed for a=6; and b=2; (the results are stored but not displayed)
for c=a+b d=c+cos(b) e=2*d f= exp(-d) where semicolon is absent (the results are stored and displayed)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.