Skip to content

Pyramid

Adrian Quintana edited this page Dec 11, 2017 · 1 revision

scale_pyramid

Purpose

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.

Usage


$ 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)

Examples and notes

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

Clone this wiki locally