Friday, May 23, 2008

Assignment #5

Assignment #5


Question #1

circle=255*zeros(256);
for x=1:256;
for y=1:256;
if (x-128)^2+(y-128)^2<=2500; circle(x,y)=1;
end;
end;
end;


Question #2




















Question 3 (TM- Theta=(pi/4), s=2)





Skewing the image by a factor of 2 pixels horizontally:





Rotated by (pi/4):





Skewing by a factor of 2 pixels horizontally and rotating (pi/4)




No comments: