DLContour Class Reference

Contour Computation. More...

#include <DLContour.h>

List of all members.

Static Public Member Functions

static DLImage dlContourImage (const DLImage &in)


Detailed Description

Contour Computation.

The object is implemented as a static function, so no object of class DLContour needs to be instantiated. See below for a usage example.

Definition at line 16 of file DLContour.h.


Member Function Documentation

static DLImage DLContour::dlContourImage ( const DLImage in  )  [static]

Compute the contour image of a binary (black and white) image. A pixel will be set to black (foreground or "ink" color) if at least one of its neighbors (in the four principal directions) is part of the background (white). The following code example will return the contour image for test.tif:

 DLImage i ("test.tif");
 DLImage contouredImage = DLContour::dlContourImage(i);
Parameters:
in const DLImage &
Returns:
DLImage showing the contour of the 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