diff --git a/src/ccstruct/stepblob.cpp b/src/ccstruct/stepblob.cpp index 2d418236..0cb482d6 100644 --- a/src/ccstruct/stepblob.cpp +++ b/src/ccstruct/stepblob.cpp @@ -25,9 +25,8 @@ #include "points.h" // for operator+=, FCOORD, ICOORD -#include "genericvector.h" // for GenericVector - #include // for pixCreate, pixGetDepth +#include // 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 y_mins; - y_mins.init_to_size(width + 1, box.top()); + std::vector 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();