Leptonica 1.68
C Image Processing Library
|
Demonstrates the watershed algorithmn using wshedCreate(), pixLocalExtrema(), pixSelectMinInConnComp(), and pixRemoveSeededComponents(). More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "allheaders.h"
Go to the source code of this file.
Functions | |
main (int argc, char **argv) |
Demonstrates the watershed algorithmn using wshedCreate(), pixLocalExtrema(), pixSelectMinInConnComp(), and pixRemoveSeededComponents().
Definition in file watershedtest.c.
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 27 of file watershedtest.c.
References composeRGBPixel(), ERROR_INT, IFF_PNG, L_WShed::nalevels, NULL, numaWriteStream(), PIX_CLR, pixaCreate(), L_WShed::pixad, pixaDestroy(), pixaDisplay(), pixaDisplayRandomCmap(), pixConvertTo32(), pixCreate(), pixDestroy(), pixDisplay(), pixGenerateFromPta(), pixGetDimensions(), pixLocalExtrema(), pixPaintThroughMask(), pixRemoveSeededComponents(), pixSaveTiled(), pixSelectMinInConnComp(), pixSetOrClearBorder(), pixSetPixel(), pixWrite(), pixZero(), ptaDestroy(), startTimer(), stopTimer(), wshedApply(), wshedCreate(), wshedDestroy(), wshedRenderColors(), and wshedRenderFill().