     clc
     close all
     clear all    
% Apply 10 degree counter-clockwise rotation to an image using the function imwarp
    A = imread('pout.tif');
    figure (1)
    imshow(A)
    
    theta = 10;
    tform = affine2d([cosd(theta) -sind(theta) 0; sind(theta) cosd(theta) 0; 0 0 1]);
    outputImage = imwarp(A,tform);
    figure (2), imshow(outputImage);

 