mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-11 15:09:03 +08:00
Replace GenericVector by std::vector in stepblob.cpp
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
3e5b2760ab
commit
d62f27dd8f
@ -25,9 +25,8 @@
|
||||
|
||||
#include "points.h" // for operator+=, FCOORD, ICOORD
|
||||
|
||||
#include "genericvector.h" // for GenericVector
|
||||
|
||||
#include <allheaders.h> // for pixCreate, pixGetDepth
|
||||
#include <vector> // for std::vector
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
@ -441,8 +440,8 @@ int16_t C_BLOB::EstimateBaselinePosition() {
|
||||
if (outlines.empty() || perimeter() > width * kMaxPerimeterWidthRatio)
|
||||
return bottom; // This is only for non-CJK blobs.
|
||||
// Get the minimum y coordinate at each x-coordinate.
|
||||
GenericVector<int> y_mins;
|
||||
y_mins.init_to_size(width + 1, box.top());
|
||||
std::vector<int> y_mins;
|
||||
y_mins.resize(width + 1, box.top());
|
||||
C_OUTLINE_IT it(&outlines);
|
||||
for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
|
||||
C_OUTLINE* outline = it.data();
|
||||
|
Loading…
Reference in New Issue
Block a user