1 | static L<Rect> ocr_mergeOverlappingY(L<Rect> l) { |
2 | l = cloneList(l); |
3 | bool change; |
4 | do { |
5 | change = false; |
6 | for i over l: |
7 | for (int j = i+1; j < l(l); j++) |
8 | if (rectsOverlapY(l.get(i), l.get(j))) { |
9 | l.set(i, mergeRects(l.get(i), l.get(j))); |
10 | l.remove(j--); |
11 | change = true; |
12 | } |
13 | } while (change); |
14 | ret l; |
15 | } |
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: | 514 / 537 |
Referenced in: | [show references] |