#include <DLContour.h>
Static Public Member Functions | |
static DLImage | dlContourImage (const DLImage &in) |
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.
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);
in | const DLImage & |