@@ -84,8 +84,6 @@ const double kMaxDiacriticDistanceRatio = 1.25;
84
84
// Max x-gap between a diacritic and its base char as a fraction of the height
85
85
// of the base char (allowing other blobs to fill the gap.)
86
86
const double kMaxDiacriticGapToBaseCharHeight = 1.0 ;
87
- // Radius of a search for diacritics in grid units.
88
- const int kSearchRadius = 2 ;
89
87
// Ratio between longest side of a line and longest side of a character.
90
88
// (neighbor_min > blob_min * kLineTrapShortest &&
91
89
// neighbor_max < blob_max / kLineTrapLongest)
@@ -104,18 +102,13 @@ const int kLineResiduePadRatio = 3;
104
102
const double kLineResidueSizeRatio = 1.75 ;
105
103
// Aspect ratio filter for OSD.
106
104
const float kSizeRatioToReject = 2.0 ;
107
- // Max number of normal blobs a large blob may overlap before it is rejected
108
- // and determined to be image
109
- const int kMaxLargeOverlaps = 3 ;
110
105
// Expansion factor for search box for good neighbours.
111
106
const double kNeighbourSearchFactor = 2.5 ;
112
107
// Factor of increase of overlap when adding diacritics to make an image noisy.
113
108
const double kNoiseOverlapGrowthFactor = 4.0 ;
114
109
// Fraction of the image size to add overlap when adding diacritics for an
115
110
// image to qualify as noisy.
116
111
const double kNoiseOverlapAreaFactor = 1.0 / 512 ;
117
- // Ratio of perimeter^2/area for a blob to be considered noise vs i dot.
118
- const double kShapePerimeterRatio = 3.0 ;
119
112
120
113
StrokeWidth::StrokeWidth (int gridsize,
121
114
const ICOORD& bleft, const ICOORD& tright)
0 commit comments