mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-28 01:11:00 +08:00
doxygen classify/normmatch.cpp
This commit is contained in:
parent
8bca324848
commit
9bcbe16fc8
@ -17,7 +17,7 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Include Files and Type Defines
|
Include Files and Type Defines
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------*/
|
||||||
#include "normmatch.h"
|
#include "normmatch.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -45,7 +45,7 @@ struct NORM_PROTOS
|
|||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Private Function Prototypes
|
Private Function Prototypes
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------*/
|
||||||
double NormEvidenceOf(register double NormAdj);
|
double NormEvidenceOf(register double NormAdj);
|
||||||
|
|
||||||
void PrintNormMatch(FILE *File,
|
void PrintNormMatch(FILE *File,
|
||||||
@ -57,17 +57,17 @@ NORM_PROTOS *ReadNormProtos(FILE *File);
|
|||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Variables
|
Variables
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* control knobs used to control the normalization adjustment process */
|
/** control knobs used to control the normalization adjustment process */
|
||||||
double_VAR(classify_norm_adj_midpoint, 32.0, "Norm adjust midpoint ...");
|
double_VAR(classify_norm_adj_midpoint, 32.0, "Norm adjust midpoint ...");
|
||||||
double_VAR(classify_norm_adj_curl, 2.0, "Norm adjust curl ...");
|
double_VAR(classify_norm_adj_curl, 2.0, "Norm adjust curl ...");
|
||||||
// Weight of width variance against height and vertical position.
|
/** Weight of width variance against height and vertical position. */
|
||||||
const double kWidthErrorWeighting = 0.125;
|
const double kWidthErrorWeighting = 0.125;
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Public Code
|
Public Code
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------*/
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
/**
|
/**
|
||||||
@ -79,7 +79,7 @@ namespace tesseract {
|
|||||||
* @param DebugMatch controls dump of debug info
|
* @param DebugMatch controls dump of debug info
|
||||||
*
|
*
|
||||||
* Globals:
|
* Globals:
|
||||||
* NormProtos character normalization prototypes
|
* #NormProtos character normalization prototypes
|
||||||
*
|
*
|
||||||
* @return Best match rating for Feature against protos of ClassId.
|
* @return Best match rating for Feature against protos of ClassId.
|
||||||
* @note Exceptions: none
|
* @note Exceptions: none
|
||||||
@ -173,7 +173,7 @@ void Classify::FreeNormProtos() {
|
|||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Private Code
|
Private Code
|
||||||
----------------------------------------------------------------------------**/
|
----------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* @name NormEvidenceOf
|
* @name NormEvidenceOf
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user