Code covered by the BSD License  

Highlights from
Rotate an image about a point

5.0

5.0 | 2 ratings Rate this file 50 Downloads (last 30 days) File Size: 2.25 KB File ID: #40469
image thumbnail

Rotate an image about a point

by

 

Performs rotation of an image about any point inside of the image.

| Watch this File

File Information
Description

The rotation about a point is performed in following sequence:
1) Padding the image.
2) Rotating the image about the image's centre with IMROTATE.
3) Cropping the image, which performs translation of the image to the right position.

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
03 Mar 2014 Juan P. Viera

Really useful. I think you should change the rotation line:
rot = imrotate(padded,angle,'crop',method);
for
rot = imrotate(padded,angle,method,'crop');

12 Jul 2013 jamesyu92

Works great for me.

Contact us