Assume imdata is a variable containing 2D (i.e., gray scale, not RGB) image data
ID: 3836983 • Letter: A
Question
Assume imdata is a variable containing 2D (i.e., gray scale, not RGB) image data. The following statements have just been executed: [m, n] = size (imdata); mid1 = m/2; mid2 = n/2; A matrix index cannot be a fraction. Rewrite the assignment statement for mid1, to accommodate the fact that m might be an odd number. Using imdata, mid1 and mid2, write the assignment statement for Q3, the image data for the region Hw7_8 refers to as "Quadrant 3". Assume imdata2 is a variable containing RGB image data. Write the assignment statement for blue, the matrix of values for the entire blue layer.Explanation / Answer
6.
[m n] = size(imdata)
mid1 = floor(m/2);
mid2 = floor(n/2);
7. reference to Q3 is missing
8. imdata2(:, :, 2) %repsresents blue layer
If you need more help on this, please comment below. I shall try my best to resolve all your issues.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.