Libraryless. Click here for Pure Java version (5368L/35K).
1 | svoid test_bwContrastQuadtree_minOfArea(BWImage img) { |
2 | BWContrastQuadTree qt = bwImageContrastQuadtree(img); |
3 | repeat 10000 { |
4 | ping(); |
5 | Rect r = randomRect(imageRect(img)); |
6 | int min1 = bwImage_minOfArea(img, r); |
7 | int min2 = bwContrastQuadtree_minOfArea(qt, img.getWidth(), r); |
8 | assertEqualsVerbose(str(r), min1, min2); |
9 | } |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026937 |
Snippet name: | test_bwContrastQuadtree_minOfArea [OK] |
Eternal ID of this version: | #1026937/5 |
Text MD5: | 71a88788964770f1d20761145213dd2e |
Transpilation MD5: | 27ff1d361686f5477558199842e5113f |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-03 13:18:45 |
Source code size: | 350 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 246 / 320 |
Version history: | 4 change(s) |
Referenced in: | [show references] |