-
Notifications
You must be signed in to change notification settings - Fork 1
Pyramid
This utility allows you to build an optimal pyramid of images using the spline expand and reduce operations. Click Http://bigwww.epfl.ch/sage/pyramids/#ReferencesHere for references.
$ scale_pyramid -i ... -expand ...
Parameters
-
__OR__For a single file -
__OR__If no output file is given, then the input one is rewritten -
`` For a bunch of files
-
__OR__If no output extension neither root are given, then the input ones are rewritten -
`` Do not produce on screen information
-
__OR__Expand or reduce the image by a factor of 2^levels -
-levels [l1] = This parameter controls the number of times an image/volume is expanded reduced. For instance, if an image of 50x50 is expanded one level it will be expanded to 100x100. But if it is expanded, two levels it will be expanded to 200x200 (=504x504)
Creating a pyramid with two reductions and 1 expansion
$ scale_pyramid -i img.xmp -o img_level_-1.xmp -expand
$ scale_pyramid -i img.xmp -o img_level_1.xmp -reduce
$ scale_pyramid -i img_level_1.xmp -o img_level_2.xmp -reduce
| expanded image (level -1) | original image (level 0) | reduced image (level 1) | twice reduced image (level 2) |
| /img_level_-1.gif | /img.gif | /img_level_1.gif | /img_level_2.gif |
--Main.AlfredoSolano - 18 Jan 2007