![]() |
Leptonica
1.82.0
Image processing and image analysis suite
|
#include <string.h>
#include "allheaders.h"
Go to the source code of this file.
Functions | |
PIXA * | l_bootnum_gen4 (l_int32 nsamp) |
Variables | |
static const char * | l_bootnum4 |
Function for re-generating prog/recog/digits/bootnum4.pa from an encoded, gzipped and serialized string.
Call this way: PIXA *pixa = l_bootnum_gen4(nsamp); where nsamp is the number of digit templates requested for each of the 10 digits. nsamp can be anything from 1 to 100.
This file was generated using the stringcode utility, in recog_bootnum3.c, slightly edited, and then merged into a single file. That program generated a pixa of 100 mosaic'd samples of each digit, which was copied to recog/digits/bootnum4.pa.
L_STRCODE *strc; strc = strcodeCreate(212); // arbitrary integer strcodeGenerate(strc, "recog/digits/bootnum4.pa", "PIXA"); strcodeFinalize(&strc, ".");
The two output files, autogen.212.c and autogen.212.h, were then slightly edited and merged into this file, and the code to generate the pixa of sample templates was added.
Definition in file bootnumgen4.c.
PIXA* l_bootnum_gen4 | ( | l_int32 | nsamp | ) |
[in] | nsamp | number of samples to retain for each digit |
Notes: (1) The encoded string and the code to generate pixa1 was automatically generated. (2) pixa1 is further processed to make the pixa of labelled digits.
Definition at line 797 of file bootnumgen4.c.
Referenced by recogMakeBootDigitTemplates().