| 1525 | } |
| 1526 | |
| 1527 | inline void fill_rect(ImageBin &record, const rect_t &rc) { |
| 1528 | int w = rc.width(); |
| 1529 | for (int y = rc.y1; y < rc.y2; ++y) { |
| 1530 | uchar *p = record.ptr(y) + rc.x1; |
| 1531 | memset(p, 1, sizeof(uchar) * w); |
| 1532 | } |
| 1533 | } |
| 1534 | |
| 1535 | int binarySearch(const word1_t a[], int bidx, int eidx, int target) // 循环实现 |
| 1536 | { |