File tree 3 files changed +0
-14
lines changed
3 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ CLISTIZE(ColPartition)
41
41
42
42
// ////////////// ColPartition Implementation ////////////////
43
43
44
- // If multiple partners survive the partner depth test beyond this level,
45
- // then arbitrarily pick one.
46
- const int kMaxPartnerDepth = 4 ;
47
44
// Maximum change in spacing (in inches) to ignore.
48
45
const double kMaxSpacingDrift = 1.0 / 72 ; // 1/72 is one point.
49
46
// Maximum fraction of line height used as an additional allowance
@@ -60,8 +57,6 @@ const double kMaxLeaderGapFractionOfMax = 0.25;
60
57
const double kMaxLeaderGapFractionOfMin = 0.5 ;
61
58
// Minimum number of blobs to be considered a leader.
62
59
const int kMinLeaderCount = 5 ;
63
- // Cost of a cut through a leader.
64
- const int kLeaderCutCost = 8 ;
65
60
// Minimum score for a STRONG_CHAIN textline.
66
61
const int kMinStrongTextValue = 6 ;
67
62
// Minimum score for a CHAIN textline.
Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ const int kMaxPadFactor = 6;
35
35
// Max multiple of size (min(height, width)) for the distance of the nearest
36
36
// neighbour for the change of type to be used.
37
37
const int kMaxNeighbourDistFactor = 4 ;
38
- // Max RMS color noise to compare colors.
39
- const int kMaxRMSColorNoise = 128 ;
40
- // Minimum number of blobs in text to make a strong text partition.
41
- const int kHorzStrongTextlineCount = 10 ;
42
38
// Maximum number of lines in a credible figure caption.
43
39
const int kMaxCaptionLines = 7 ;
44
40
// Min ratio between biggest and smallest gap to bound a caption.
@@ -49,10 +45,6 @@ const double kMinCaptionGapHeightRatio = 0.5;
49
45
const double kMarginOverlapFraction = 0.25 ;
50
46
// Size ratio required to consider an unmerged overlapping partition to be big.
51
47
const double kBigPartSizeRatio = 1.75 ;
52
- // Allowed proportional change in stroke width to match for smoothing.
53
- const double kStrokeWidthFractionTolerance = 0.25 ;
54
- // Allowed constant change in stroke width to match for smoothing.
55
- const double kStrokeWidthConstantTolerance = 2.0 ;
56
48
// Fraction of gridsize to allow arbitrary overlap between partitions.
57
49
const double kTinyEnoughTextlineOverlapFraction = 0.25 ;
58
50
// Max vertical distance of neighbouring ColPartition as a multiple of
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ struct addrinfo {
60
60
61
61
#include " svutil.h"
62
62
63
- const int kBufferSize = 65536 ;
64
63
const int kMaxMsgSize = 4096 ;
65
64
66
65
// Signals a thread to exit.
You can’t perform that action at this time.
0 commit comments