Back to index

texmacs  1.0.7.15
Functions | Variables
handwriting.hpp File Reference
#include "poly_line.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void register_glyph (string name, contours gl)
string recognize_glyph (contours gl)

Variables

array< contourslearned_glyphs
array< stringlearned_names
array< array< tree > > learned_disc1
array< array< double > > learned_cont1
array< array< tree > > learned_disc2
array< array< double > > learned_cont2

Function Documentation

Definition at line 74 of file recognize_handwriting.cpp.

                              {
  string r;
  for (int i=0; i<N(gl); ) {
    int eat= 1;
    while (i+eat < N(gl) && attached (gl[i+eat-1], gl[i+eat])) eat++;
    int    lev= 3;
    string subr= "";
    double rec= -100.0;
    recognize_glyph_one (range (gl, i, i+eat), lev, subr, rec);
    r << subr;
    i += eat;
    //cout << "Add " << eat << "\n";
  }
  return r;
}

Here is the caller graph for this function:

void register_glyph ( string  name,
contours  gl 
)

Definition at line 26 of file learn_handwriting.cpp.

                                          {
  array<tree>   disc1;
  array<double> cont1;
  invariants (gl, 1, disc1, cont1);
  array<tree>   disc2;
  array<double> cont2;
  invariants (gl, 2, disc2, cont2);
  learned_names  << name;
  learned_glyphs << gl;
  learned_disc1  << disc1;
  learned_cont1  << cont1;
  learned_disc2  << disc2;
  learned_cont2  << cont2;
  //cout << "Added " << name << ", " << disc1 << "\n";
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 21 of file learn_handwriting.cpp.

Definition at line 23 of file learn_handwriting.cpp.

Definition at line 20 of file learn_handwriting.cpp.

Definition at line 22 of file learn_handwriting.cpp.

Definition at line 18 of file learn_handwriting.cpp.

Definition at line 19 of file learn_handwriting.cpp.