Function Reference
— Function File: imrotate(M, theta, method, bbox)

Rotation of a 2D matrix.

Applies a rotation of THETA degrees to matrix M.

The method argument is not implemented, and is only included for compatibility with Matlab. This function uses Fourier interpolation, decomposing the rotation matrix into 3 shears.

bbox can be either 'loose' or 'crop'. 'loose' allows the image to grow to accomodate the rotated image. 'crop' keeps the same size as the original, clipping any part of the image that is moved outside the bounding box.