Functions > Image Processing > Geometric Transforms > Example: Rotating Images
Example: Rotating Images
Use the rotate function to rotate an image counterclockwise through a specified angle.
For information on using this example, refer to About Image Processing Examples.
1. Read in a sample image.
Click to copy this expression
2. Apply the rotate function to the image.
Click to copy this expression
Click to copy this expression
(pattern.bmp)
(pattern_r35.bmp)
For rotations that are not multiples of 90 degrees, the extra pixels are set to zero (black background).
3. To view the result of rotate mathematically, construct the following image matrix.
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
4. Apply the rotate function to M.
Click to copy this expression
Was this helpful?