NAME
image_sharp - sharpens an image
SYNOPSIS
#include "CVIPtoolkit.h"
#include "image_enhance.h"
void image_sharp( Image *inputImage)
<inputImage> - pointer to an Image structure
PATH
$CVIPHOME/SPATIALFILTER/img_sharp.c
DESCRIPTION
This function uses the Roberts gradient algorithm to enhance
edges in an image. For each pixel in the image, its gradient
is calculated as the difference in gray levels between adja-
cent pixels, and is added to the original pixel value. Since
the gradient assumes large values for prominent edges in the
image and small values in regions that are fairly smooth,
the original pixel value is added to get a constrasted sharp
image.
TYPES AND CONSTANTS
RETURN VALUES
A pointer to the sharpened image
HISTORY
History information recorded: None
SEE ALSO
libspatialfilter
AUTHOR
Copyright (C) 1996 SIUE - by Scott E. Umbaugh and Srinivas
Madiraju.