MAN page from RedHat Other XITE-3.3-3.i386.rpm
REMOVE_GHOST
Section: C Library Functions (3)
Updated: 16 Mar 1998
Index
NAME
remove_ghost, remove_inv_ghost, mark_ghost,mark_inv_ghost - remove (or mark) "ghost" objects from(or in) binary image
SYNTAX
#include <
xite/binarize.h>
int remove_ghost( IBAND segmented,
IBAND original, IBAND outband,
int val_step_threshold );
int remove_inv_ghost( IBAND segmented,
IBAND original, IBAND outband,
int val_step_threshold );
int mark_ghost( IBAND segmented,
IBAND original, IBAND outband,
int val_step_threshold );
int mark_inv_ghost( IBAND segmented,
IBAND original, IBAND outband,
int val_step_threshold );
DESCRIPTION
The original gray scale image
originaland a binarizedversion
segmentedare input to the routine.
- .I remove_ghost
- First, inbandis copied to outband.For all 4-connectedblack objects in outband,the average gradient magnitudevalue at the edge of the object is calculated. Objects havingan average gradient below the threshold valueval_step_thresholdare removed from outband.
- .I remove_inv_ghost
- Works like remove_ghoston 4-connected white objects.
- .I mark_ghost
- Works like remove_ghost, but instead of removing an object,it is colored (255 - avg_grad),where avg_gradis theaverage gradient value on the edge of the object. It can thenbe thresholded manually to give the final binary image.
- .I mark_inv_ghost
- Combination of mark_ghostand remove_inv_ghost.Works likeremove_inv_ghost, but instead of removing an object, it iscolored avg_grad,where avg_gradis the average gradientvalue on the edge of the object.
RESTRICTIONS
Works on unsigned byte bands.
RETURN VALUE
0 : ok
1 : Bad pixel type for segmented
2 : Bad pixel type for original
3 : Bad pixel type for outband
SEE ALSO
binarize(1),
bin_yb(3),
bin_iwr(3)
REFERENCES
- .I S.D. Yanowitz & A.M. Bruckstein
- "A New Method for Image Segmentation",Comput. Vision Graphics Image Proc., vol 46, no 1, pp 82-95,April 1989.
FILES
src/binarize/remove_ghost.c
AUTHOR
Řivind Due Trier
ID
$Id: remove_ghost.c,v 1.18 1997/01/29 10:37:42 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- RESTRICTIONS
- RETURN VALUE
- SEE ALSO
- REFERENCES
- FILES
- AUTHOR
- ID
This document was created byman2html,using the manual pages.