|
|
NetPBM – pamrubber
|
|
|
Tri and Quad ModesThere are two very different options to control the stretching that 'pamrubber' is doing. One is called "tri" and the other "quad".
In all scenarios, the four corners of the image are used as additional control points, generating more triangles to fill the whole image. |
|
|
Control PointsLet's outline the various options you have with providing control points. As my sample image I use a simple 3D picture of a Rubik's cube.
|
|
|
Changing the WorldHere another example that shows how 'pamrubber' can be used to alter the map of the world by "blowing up" the continents.
pamrubber 10 25 110 5 140 45 100 90
5 25 180 5 210 60 130 150 world.ppm > namerica.ppm
pamrubber 100 70 155 95 110 150
50 30 170 60 90 170 world.ppm > samerica.ppm
pamrubber 150 70 200 55 230 80 200 120
100 70 170 40 240 80 180 160 world.ppm > africa.ppm
pamrubber 160 45 210 10 215 45 185 55
120 70 210 5 240 70 180 100 world.ppm > europe.ppm
pamrubber 225 15 355 25 290 90 225 60
150 15 355 25 270 145 175 90 world.ppm > asia.ppm
pamrubber 270 120 320 90 340 115 330 140
200 120 295 60 345 120 315 170 world.ppm > australia.ppm
|
|
|
The SoftwareAs of today, the source code for pamrubber is part of the "Advanced" tree of the netpbm package on SourceForge. It will take couple of months before it gets pushed into the "Stable" release.
|
|
|
|