Leptonica 1.68
C Image Processing Library

compfilter_reg.c File Reference

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]

Detailed Description

Tests filters that select components based on size, areaPerimRatio, areaFraction, etc.

Definition in file compfilter_reg.c.


Function Documentation

void count_pieces ( PIX pix,
l_int32  nexp 
) [static]

Definition at line 277 of file compfilter_reg.c.

References boxaDestroy(), boxaGetCount(), NULL, pixConnComp(), pixDestroy(), and pixDisplayWrite().

Referenced by main().

void count_pieces2 ( BOXA boxa,
l_int32  nexp 
) [static]

Definition at line 293 of file compfilter_reg.c.

References boxaDestroy(), and boxaGetCount().

Referenced by main().

l_int32 count_ones ( NUMA na,
l_int32  nexp,
l_int32  index,
const char *  name 
) [static]

Definition at line 305 of file compfilter_reg.c.

References numaGetCount(), and numaGetIValue().

Referenced by main().


Variable Documentation

const l_float32 edges[13] [static]
Initial value:
 {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().

const l_int32 band[12] [static]
Initial value:
 {1, 11, 48, 264, 574, 704, 908, 786, 466,
                                 157, 156, 230}

Definition at line 35 of file compfilter_reg.c.

Referenced by main().

const l_int32 total[12] [static]
Initial value:
 {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().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines