mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 15:39:04 +08:00
Fix CID 1164621 (Uninitialized scalar field)
Format also some comments. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
8582ee097c
commit
66b71e6b58
@ -22,17 +22,12 @@
|
||||
#include "pitsync1.h"
|
||||
|
||||
ELISTIZE (FPSEGPT) CLISTIZE (FPSEGPT_LIST)
|
||||
#define EXTERN
|
||||
EXTERN
|
||||
INT_VAR (pitsync_linear_version, 6, "Use new fast algorithm");
|
||||
EXTERN
|
||||
double_VAR (pitsync_joined_edge, 0.75,
|
||||
"Dist inside big blob for chopping");
|
||||
EXTERN
|
||||
double_VAR (pitsync_offset_freecut_fraction, 0.25,
|
||||
"Fraction of cut for free cuts");
|
||||
EXTERN
|
||||
INT_VAR (pitsync_fake_depth, 1, "Max advance fake generation");
|
||||
|
||||
INT_VAR(pitsync_linear_version, 6, "Use new fast algorithm");
|
||||
double_VAR(pitsync_joined_edge, 0.75, "Dist inside big blob for chopping");
|
||||
double_VAR(pitsync_offset_freecut_fraction, 0.25,
|
||||
"Fraction of cut for free cuts");
|
||||
INT_VAR(pitsync_fake_depth, 1, "Max advance fake generation");
|
||||
|
||||
/**********************************************************************
|
||||
* FPSEGPT::FPSEGPT
|
||||
@ -90,7 +85,12 @@ int16_t region_index, //segment number
|
||||
int16_t pitch, //proposed pitch
|
||||
int16_t pitch_error, //allowed tolerance
|
||||
FPSEGPT_LIST * prev_list //previous segment
|
||||
):xpos (x) {
|
||||
)
|
||||
: fake_count(0),
|
||||
xpos(x),
|
||||
mean_sum(0.0),
|
||||
sq_sum(0.0)
|
||||
{
|
||||
int16_t best_fake; //on previous
|
||||
FPSEGPT *segpt; //segment point
|
||||
int32_t dist; //from prev segment
|
||||
@ -133,7 +133,6 @@ FPSEGPT_LIST * prev_list //previous segment
|
||||
pred = nullptr; //fail it
|
||||
}
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* check_pitch_sync
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user