Leptonica 1.68
C Image Processing Library

warper_reg.c File Reference

Regression test for captchas using pixRandomHarmonicWarp() and pixSimpleCaptcha(). More...

#include <math.h>
#include "allheaders.h"

Go to the source code of this file.

Functions

static void DisplayResult (PIXA *pixac, PIX **ppixd, l_int32 newline)
static void DisplayCaptcha (PIXA *pixac, PIX *pixs, l_int32 nterms, l_uint32 seed, l_int32 newline)
 main (int argc, char **argv)

Variables

static const l_int32 size = 4
static const l_float32 xmag [] = {3.0, 4.0, 5.0, 7.0}
static const l_float32 ymag [] = {5.0, 6.0, 8.0, 10.0}
static const l_float32 xfreq [] = {0.11, 0.10, 0.10, 0.12}
static const l_float32 yfreq [] = {0.11, 0.13, 0.13, 0.15}
static const l_int32 nx [] = {4, 3, 2, 1}
static const l_int32 ny [] = {4, 3, 2, 1}

Detailed Description

Regression test for captchas using pixRandomHarmonicWarp() and pixSimpleCaptcha().

Definition in file warper_reg.c.


Function Documentation

static void DisplayResult ( PIXA pixac,
PIX **  ppixd,
l_int32  newline 
) [static]

Definition at line 89 of file warper_reg.c.

References L_BLUE_SHIFT, L_GREEN_SHIFT, L_RED_SHIFT, pixColorizeGray(), pixDestroy(), and pixSaveTiled().

Referenced by main().

static void DisplayCaptcha ( PIXA pixac,
PIX pixs,
l_int32  nterms,
l_uint32  seed,
l_int32  newline 
) [static]

Definition at line 109 of file warper_reg.c.

References L_BLUE_SHIFT, L_GREEN_SHIFT, L_RED_SHIFT, pixDestroy(), pixSaveTiled(), and pixSimpleCaptcha().

Referenced by main().


Variable Documentation

const l_int32 size = 4 [static]

Definition at line 27 of file warper_reg.c.

Referenced by bmfCreate(), boxaExtendArrayToSize(), boxaSort(), debugPrintLUT(), dilateGrayLow(), DoComparisonDwa1(), DoComparisonDwa2(), DoComparisonDwa3(), DoComparisonDwa4(), DoComparisonDwa5(), erodeGrayLow(), fhmtautogen1(), fhmtautogen2(), findSimilarSizedTemplatesNext(), fmorphautogen1(), fmorphautogen2(), fpixaExtendArrayToSize(), generateRandomNumberArray(), generateTrailerPdf(), genPathname(), jbClassifyRankHaus(), jbDataRead(), jbRankHausInit(), kernelCreateFromFile(), l_byteaAppendData(), l_byteaAppendString(), l_byteaExtendArrayToSize(), l_byteaFindEachSequence(), l_byteaInitFromMem(), l_byteaWriteStream(), l_productMat2(), l_productMatVec(), lheapSortStrictOrder(), main(), mergeLookup(), numaCreateFromFArray(), numaCreateFromIArray(), numaDilate(), numaErode(), numaGetBinSortIndex(), numaMakeSequence(), numaPseudorandomSequence(), numaRandomPermutation(), parseTrailerPdf(), pathJoin(), pix_malloc(), pixacompReadStream(), pixaExtendArrayToSize(), pixcmapToOctcubeLUT(), pixcompCreateFromPix(), pixcompCreateFromString(), pixFewColorsOctcubeQuant1(), pixGetCmapHistogram(), pixGetCmapHistogramMasked(), pixGetGrayHistogram(), pixMaskOverColorPixels(), pixNumberOccupiedOctcubes(), pixOctcubeHistogram(), pixOctcubeQuantMixedWithGray(), pixOctreeQuantByPopulation(), pixQuadtreeMean(), pixQuadtreeVariance(), pixScaleSmooth(), pixWriteStreamSpix(), ptraConcatenatePdfToData(), sarrayCreateLinesFromString(), sarrayCreateWordsFromString(), sarrayReadStream(), sarrayToStringRange(), scaleSmoothLow(), selaAddBasic(), selaAddDwaCombs(), selCreateComb(), stringLength(), substituteObjectNumbers(), sudokuReadFile(), test_mem_gif(), test_mem_png(), test_writemem(), and writeCustomTiffTags().

const l_float32 xmag[] = {3.0, 4.0, 5.0, 7.0} [static]

Definition at line 28 of file warper_reg.c.

Referenced by main(), and pixSimpleCaptcha().

const l_float32 ymag[] = {5.0, 6.0, 8.0, 10.0} [static]

Definition at line 29 of file warper_reg.c.

Referenced by main(), and pixSimpleCaptcha().

const l_float32 xfreq[] = {0.11, 0.10, 0.10, 0.12} [static]

Definition at line 30 of file warper_reg.c.

Referenced by main(), and pixSimpleCaptcha().

const l_float32 yfreq[] = {0.11, 0.13, 0.13, 0.15} [static]

Definition at line 31 of file warper_reg.c.

Referenced by main(), and pixSimpleCaptcha().

const l_int32 nx[] = {4, 3, 2, 1} [static]

Definition at line 32 of file warper_reg.c.

Referenced by main().

const l_int32 ny[] = {4, 3, 2, 1} [static]

Definition at line 33 of file warper_reg.c.

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines