Download Jar. Libraryless. Click here for Pure Java version (8890L/64K).
1 | !7 |
2 | |
3 | p-exp { |
4 | BWImage bw = new(200, 100, 0f); |
5 | bwFillWhiteRect(bw, 30, 40, 80, 35); |
6 | final BWIntegralImage ii = new(bw); |
7 | showImage(bw); |
8 | int w = ii.getWidth(), h = ii.getHeight(); |
9 | for (int y = 0; y < h; y += 5) { |
10 | for (int x = 0; x < w; x += 5) |
11 | print_noNewLine(bwIntegralImage_whiteRectWithBlackBorder_perPixel(ii, x, y, x+30, y+30, 2, 2) + " "); |
12 | print(); |
13 | } |
14 | |
15 | print(highestByFunction(ptGrid(0, 0, w, h, 5, 5), func(Pt p) { |
16 | bwIntegralImage_whiteRectWithBlackBorder(ii, p.x, p.y, p.x+30, p.y+30, 2, 2) |
17 | })); |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019788 |
Snippet name: | Test finding boxes in BWIntegralImage [dev.] |
Eternal ID of this version: | #1019788/6 |
Text MD5: | 0183014141ad35666901f03b0c1e9fbf |
Transpilation MD5: | 5ea70fabcdc728a6740d10daeada71d4 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-26 19:44:03 |
Source code size: | 554 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 403 / 1053 |
Version history: | 5 change(s) |
Referenced in: | [show references] |