ece480 | doering | ece labs | ece | rhit |
Due Date: Tuesday, January 22For each problem, be sure to append Matlab code and image hardcopy. Problem 1Apply the Prewitt and Sobel edge detectors to the 'pattern.png' image. Present the results of the horizontal and vertical masks (the partial derivative operators), and also present the gradient magnitude image. Apply the Laplacian operator to 'pattern.png', as well. Comment on your results. Problem 2Design a user-friendly Matlab function deskew(x) that accepts an image x with skew, prompts the user to identify a horizontal feature in the image, and returns the deskewed version of the image as output. Your function should work as follows: (1) Prompt the user (via a text message) to select two points in the image that correspond to the endpoints of what should be a horizontal line in the skewed image, (2) display a line joining the two points, (3) compute the angle of the line, and (4) rotate (deskew) the image based on the measured angle. Demonstrate your results using the atan2.png image. Problem 3Design, implement, and demonstrate at least two distinct nonlinear image warping functions. Be creative! Look at geom2.m (you saw this used in class) to get an idea of how to implement your image warping function. |
|