MAN page from RedHat Other XITE-3.3-3.i386.rpm
EXPAND_EDGE
Section: User Commands (1)
Updated: 16 Mar 1998
Index
NAME
expand_edge - Expand image by edge mirroring.
SYNTAX
expand_edge [-0] [-e] [-o] [-z <value>] [-p <size>]<inimage> <outimage>
DESCRIPTION
expand_edge is used on an image to aviod some typesof edge difficulties.
Expands inimageby sizepixels on all four edges,and writes the result to outimage.If the dimensionsof inimageis n x m, then the dimensions of outimagewill be (n + 2*size) x (m + 2*size).
Imagine placing mirrors on the edges of inimage.Thesemirror images are mapped to outimage. Using the defaultsetting, which is equivalent to specifying -e -p 3,the result will be like this:
inimage outimage
ihg|ghi xyz|zyxfed|def . . . uvw|wvucba|abc rst|tsr+------- - - - -------+ ---+------- - - - -------+---abc rst| cba|abc rst|tsrdef . . . uvw| fed|def . . . uvw|wvughi xyz| ihg|ghi xyz|zyx
| | |
OPTIONS
- -0
- The new pixels are set to 0 instead of being mirror images.
- -z value
- The new pixels are set to -valueinstead of being mirrorimages.
- -e
- Even expansion.
- -o
- Odd expansion. The pixels closest to the edge are not mirrored.
- -p size
- sizespecifies the width in pixels of the expanded edge.
RESTRICTIONS
inimagemust have pixel type unsigned byte.
sizemust not exceed the smallest of the X dimensionand the Y dimension of
inimage.If both -e and -o options are specified, -e (the default)is chosen.
SEE ALSO
expand_edge(3)
AUTHOR
Řivind Due Trier, BLAB, Ifi, UiO
EXAMPLES
expand_edge mona.img mona_expand.imgexpand_edge -0 -o -p 2 mona.img mona_zeroexpand.imgexpand_edge -z -255 -p 1 5.binary.img 5.binary_expand.img
ID
$Id: expand_edge.c,v 1.19 1997/01/14 15:47:01 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- OPTIONS
- RESTRICTIONS
- SEE ALSO
- AUTHOR
- EXAMPLES
- ID
This document was created byman2html,using the manual pages.