Leptonica 1.68
C Image Processing Library
|
Demonstrates unsupervised classification of collections of connected components in binary images using jbRankHaus(). More...
#include <stdio.h>
#include <stdlib.h>
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | COMPONENTS JB_CONN_COMPS |
#define | BUF_SIZE 512 |
#define | DEBUG_TEST_DATA_IO 0 |
#define | RENDER_DEBUG 1 |
#define | DISPLAY_DIFFERENCE 1 |
#define | DISPLAY_ALL_INSTANCES 0 |
#define | X_SPACING 10 |
#define | Y_SPACING 15 |
#define | MAX_OUTPUT_WIDTH 400 |
Functions | |
main (int argc, char **argv) |
Demonstrates unsupervised classification of collections of connected components in binary images using jbRankHaus().
Definition in file jbrankhaus.c.
#define COMPONENTS JB_CONN_COMPS |
Definition at line 41 of file jbrankhaus.c.
Referenced by main().
#define BUF_SIZE 512 |
Definition at line 45 of file jbrankhaus.c.
Referenced by main().
#define DEBUG_TEST_DATA_IO 0 |
Definition at line 48 of file jbrankhaus.c.
#define RENDER_DEBUG 1 |
Definition at line 49 of file jbrankhaus.c.
#define DISPLAY_DIFFERENCE 1 |
Definition at line 50 of file jbrankhaus.c.
#define DISPLAY_ALL_INSTANCES 0 |
Definition at line 51 of file jbrankhaus.c.
#define X_SPACING 10 |
Definition at line 54 of file jbrankhaus.c.
Referenced by main().
#define Y_SPACING 15 |
Definition at line 55 of file jbrankhaus.c.
Referenced by main().
#define MAX_OUTPUT_WIDTH 400 |
Definition at line 56 of file jbrankhaus.c.
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 59 of file jbrankhaus.c.
References BUF_SIZE, COMPONENTS, ERROR_INT, FALSE, filename, getSortedPathnamesInDirectory(), IFF_PNG, jbAddPages(), jbClasserDestroy(), jbDataDestroy(), jbDataRead(), jbDataRender(), jbDataSave(), jbDataWrite(), jbRankHaus(), jbRankHausInit(), L_CLONE, MAX_OUTPUT_WIDTH, nfiles, NULL, JbClasser::pixaa, pixaaDisplayByPixa(), pixaDestroy(), pixaGetCount(), pixaGetPix(), pixDestroy(), pixEqual(), pixRead(), pixWrite(), pixXor(), sarrayDestroy(), sarrayGetCount(), sarrayGetString(), size, startTimer(), stopTimer(), TRUE, X_SPACING, and Y_SPACING.