Pink 0.9

rotate.c File Reference

rotation of an image More...


Detailed Description

rotation of an image

Usage: rotate in.pgm theta [x y] out.pgm

Description: rotates the image in.pgm of the angle theta (in degrees). Method: interpolation. If x and y are given, then the center of the rotation is the point (x,y) and the image size is left unchanged (hence parts of object may be lost). Otherwise, the center of the rotation is the point (0,0) and the resulting image size is computed such that no loss of information occur.

Types supported: byte 2d

Category: geo

Author:
Michel Couprie