MCPcopy Create free account
hub / github.com/WallBreaker2/op / fill_rect

Function fill_rect

libop/image/ImageSearchAlgorithms.cpp:1527–1533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525}
1526
1527inline 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
1535int binarySearch(const word1_t a[], int bidx, int eidx, int target) // 循环实现
1536{

Callers 1

_bin_ocrMethod · 0.85

Calls 2

widthMethod · 0.80
ptrMethod · 0.45

Tested by

no test coverage detected