Professional Documents
Culture Documents
Question 01:
Write a program in your preferred programming language to rotate an image by some
random angle between 0 to 270 You can take greyscale image or color image.
Code:
% @U20EC050 NARENDRA GAVLI
clc;
clear;
close all;
U20EC050 1|Page
% Copy the pixel value from the original image to the rotated
image
rot_img(i,j,:) = img(p(1),p(2),:);
end
end
end
Output:
U20EC050 2|Page