static L<Rect> ocr_mergeOverlappingY(L<Rect> l) { l = cloneList(l); bool change; do { change = false; for i over l: for (int j = i+1; j < l(l); j++) if (rectsOverlapY(l.get(i), l.get(j))) { l.set(i, mergeRects(l.get(i), l.get(j))); l.remove(j--); change = true; } } while (change); ret l; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006336 |
| Snippet name: | ocr_mergeOverlappingY |
| Eternal ID of this version: | #1006336/1 |
| Text MD5: | 28b7a6d2fb82f9515b969d2875aaee13 |
| Author: | stefan |
| Category: | javax / ocr |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-28 23:02:22 |
| Source code size: | 374 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 735 / 767 |
| Referenced in: | #1006343 - ocr_mergeOverlappingY_plusPercent #1006654 - Standard functions list 2 (LIVE, continuation of #761) |