DLSharpen Class Reference

Sharpen an image. More...

#include <DLSharpen.h>

List of all members.

Static Public Member Functions

static DLImage dlSharpen (const DLImage &in, int numberOfTimes)


Detailed Description

Sharpen an image.

Definition at line 13 of file DLSharpen.h.


Member Function Documentation

static DLImage DLSharpen::dlSharpen ( const DLImage in,
int  numberOfTimes 
) [static]

Sharpen an image. This algorithm is implemented as a static function, so no object of class DLSharpen needs to be instantiated. See below for a usage example:

 DLImage i ("test.tif");
 DLImage sharpenedImage = DLSharpen::dlSharpen(i);

This function (currently) requires a color image as input. At each application of the sharpening operation, a 5x5 sharpening filter is convolved with the image:

\[ \left[ \begin{array}{rrrrr} 0 & 0 & -1 & 0 & 0 \\ 0 & -8 & -21 & -8 & 0 \\ -1 & -21 & 299 & -21 & -1 \\ 0 & -8 & -21 & -8 & 0 \\ 0 & 0 & -1 & 0 & 0 \end{array} \right] \]

Parameters:
in DLImage to sharpen
numberOfTimes number of times to apply sharpening operation
Returns:
sharpened image


The documentation for this class was generated from the following file:

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007