Get Teem at SourceForge.net. Fast, secure and Free Open Source software downloads
teem / bin

  ilk: Arbitrary transformations

Arbitrary

You can give ilk an arbitrary 2x3 homogenous coordinate transform with "-t a,b,c,d,tx,ty", where the matrix is arranged:
 [ a  c  tx ]  [ x ]
 [ b  d  ty ]  [ y ]
 [ 0  0  1  ]  [ 1 ]
The coefficients are linearly ordered in exactly the same way as they are for PostScript's representation of 2D transformations.
ilk -i init.ppm -t 1.1,-0.2,0.5,1.3,150,-90 -b wrap | tojpg > arb.jpg