pyramid
[ XITE Reference Manual | XITE home ]
Name
pyramid - create a pyramid data structure
Syntax
pyramid [-l] [-s] [-r <rank>] [-g] [-n <levels>] \\
<inimage> <outimage>
Description
Create a pyramid data structure from the first band
of the input image inimage, write the resulting
image to outimage. By default, the bottom layer
will have the same size as the input image, (-1 if
odd), and the resampling technique is two by two
average.
Options
-
-l
- Let the bottom band have the smallest square
power of two size larger than the input.
-
-s
- Let the bottom band have the largest square
power of two size smaller than the input.
-
-r rank
- Use rank=rank; the rank'th sorted pixel value
in the window as resampling result (rank = 1..4).
-
-g
- Use Gaussian pyramid, ref. IEEE trans. on Comm.
1983, no.4, page 532, with a=0.4.
1983, no.4, page 532 with a=0.4.
-
-n levels
- Spesify the number of levels wanted in
the pyramid (default: all possible levels).
Use only one of -l and -s or none. If none, then
integer division by 2 is performed as far as possible.
If none of the options are used, mean pyramid is performed.
Restrictions
Input image must have pixel type unsigned byte.
Author
Tor Lønnestad, BLAB, Ifi, UiO
Revised
Helene Schulerud, BLAB, Ifi, UiO,
Svein Bøe, Blab, Ifi, UiO
Id
$Id: pyramid.c,v 1.30 1997/06/19 08:40:26 svein Exp $
Examples
pyramid mona.img monaPyr.img
pyramid -l mona.img mona.PyrL.img
pyramid -s -r 4 mona.img mona.PyrS.img
pyramid -g mona.img mona.PyrG.img