Load the photo into Matlab matrix
I. What is the correction angle that aligns the vertical
wall stripes to be also vertical in the image?
Implements a function Iout =
imagerotate(I,theta) that performs the rotation about
theta degrees in the positive direction.
Grading: [3 point(s)]
Extend the function imagerotate in
the way it allows optional number of input parameters. The parameter
theta will be considered optional. If not specified, the
function imagerotate estimates the correction angle
automatically. Hint: Matlab function nargin returns the
number of input parameters. Test your code on several input images not
just the one provided.
Grading: [3 point(s)] The quality of the automatic estimation will be evaluated
Bonus point is the whole implementation will be efficiently implemented. Rotation of an 640x480 image should take around a second or less.
Grading: [1 point(s)]