MAN page from RedHat Other XITE-3.3-3.i386.rpm
EXPAND_EDGE
Section: C Library Functions (3)
Updated: 16 Mar 1998
Index
NAME
expand_edge - Expand image by edge mirroring.
SYNTAX
#include <
xite/binarize.h>
int expand_edge( IBAND inband, int zero_expand,
int even_expand, int expand_depth,
IBAND outband );
DESCRIPTION
expand_edgeis used on a band to avoid some typesof edge difficulties.
Expands inbandby expand_depthpixels on all four edges,and writes the result to outband.If the dimensionsof inbandare n x m, then the dimensions of outbandwill be (n + 2*size) x (m + 2*size).
Imagine placing mirrors on the edges of inband.Thesemirror bands are mapped to outband.Using expand_depth= 3 and even_expand== 1, the result will be like this:
inband: outband:
ihg|ghi xyz|zyx
fed|def . . . uvw|wvu
cba|abc rst|tsr
+------- - - - -------+ ---+------- - - - -------+---
|abc rst| cba|abc rst|tsr
|def . . . uvw| fed|def . . . uvw|wvu
|ghi xyz| ihg|ghi xyz|zyx
| | | |
. . . .
. . . .
. . . .
If zero_expand== 1, the new pixels are set to 0 instead.Else, if zero_expand<= -1, then the new pixels are set to-zero_expand.To expand a binary image with a whiteborder, use zero_expand= -255.If even_expand== 0, the pixels closest to the edge arenot mirrored/repeated.`expand_depthspecifies the width in pixels of thesections of inbandto be mirrored.
RESTRICTIONS
inbandand
outbandmust have pixel type unsigned byte.`expand_depth
must not exceed the smallest of the X dimensionand the Y dimension of
inband.
RETURN VALUE
0 => ok
1 => Bad pixel type
2 => parameter 'expand_depth' too large.
3 => outband too small.
SEE ALSO
expand_edge(1)
FILES
src/binarize/expand_edge.c
AUTHOR
Řivind Due Trier, BLAB, Ifi, UiO.
ID
$Id: expand_edge.c,v 1.19 1997/01/14 15:47:01 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- RESTRICTIONS
- RETURN VALUE
- SEE ALSO
- FILES
- AUTHOR
- ID
This document was created byman2html,using the manual pages.