Leptonica 1.68
C Image Processing Library
|
Tests filters that select components based on size, areaPerimRatio, areaFraction, etc. More...
#include <stdio.h>
#include <stdlib.h>
#include "allheaders.h"
Go to the source code of this file.
Functions | |
static void | count_pieces (PIX *pix, l_int32 nexp) |
static void | count_pieces2 (BOXA *boxa, l_int32 nexp) |
static l_int32 | count_ones (NUMA *na, l_int32 nexp, l_int32 index, const char *name) |
main (int argc, char **argv) | |
Variables | |
static const l_float32 | edges [13] |
static const l_int32 | band [12] |
static const l_int32 | total [12] |
Tests filters that select components based on size, areaPerimRatio, areaFraction, etc.
Definition in file compfilter_reg.c.
Definition at line 277 of file compfilter_reg.c.
References boxaDestroy(), boxaGetCount(), NULL, pixConnComp(), pixDestroy(), and pixDisplayWrite().
Referenced by main().
Definition at line 293 of file compfilter_reg.c.
References boxaDestroy(), and boxaGetCount().
Referenced by main().
Definition at line 305 of file compfilter_reg.c.
References numaGetCount(), and numaGetIValue().
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 47 of file compfilter_reg.c.
References band, boxaAddBox(), boxaCreate(), boxaDestroy(), boxaGetCount(), boxaSelectBySize(), boxCreate(), count_ones(), count_pieces(), count_pieces2(), edges, IFF_JFIF_JPEG, L_HORIZONTAL_LINE, L_INSERT, L_INTERSECTION, L_POS_SLOPE_LINE, L_SELECT_HEIGHT, L_SELECT_IF_BOTH, L_SELECT_IF_EITHER, L_SELECT_IF_GT, L_SELECT_IF_GTE, L_SELECT_IF_LT, L_SELECT_IF_LTE, L_SELECT_WIDTH, L_SET_PIXELS, L_UNION, L_VERTICAL_LINE, NULL, numaCreate(), numaDestroy(), numaInvert(), numaLogicalOp(), numaMakeThresholdIndicator(), numaSetCount(), pixaCreate(), pixaDestroy(), pixaDisplay(), pixaFindAreaFraction(), pixaFindAreaPerimRatio(), pixaFindDimensions(), pixaSelectWithIndicator(), pixConnComp(), pixCopy(), pixCreate(), pixCreateTemplate(), pixDestroy(), pixDisplay(), pixDisplayMultiple(), pixDisplayWrite(), pixFillClosedBorders(), pixGetDimensions(), pixOr(), pixRead(), pixRemoveWithIndicator(), pixRenderBox(), pixRenderHashBox(), pixSaveTiled(), pixSelectByAreaFraction(), pixSelectByAreaPerimRatio(), pixSelectBySize(), pixWrite(), pixZero(), and total.
{0.0, 0.2, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.7, 0.8, 0.9, 1.0}
Definition at line 31 of file compfilter_reg.c.
Referenced by main().
{1, 11, 48, 264, 574, 704, 908, 786, 466, 157, 156, 230}
Definition at line 35 of file compfilter_reg.c.
Referenced by main().
{1, 12, 60, 324, 898, 1602, 2510, 3296, 3762, 3919, 4075, 4305}
Definition at line 37 of file compfilter_reg.c.
Referenced by main(), MakeGaussian(), medianCutApply(), numaFillCmapFromHisto(), numaFindPeaks(), numaHistogramGetRankFromVal(), numaHistogramGetValFromRank(), and pixColorFraction().