Transpiled version (6222L) is out of date.
// Limitation: img must be square with w/h a power of 2 svoid storeIntegralImageProgressively(IntegralImage img, IVF2<Pt, Int> store) { assertSquare(img); int w = img.getWidth(); assertPowerOfTwo(w); int size = w; new Set<Pt> seen; while ping (size > 0) { for (int y = 0; y < w; y += size) for (int x = 0; x < w; x += size) if (seen.add(pt(x, y))) // TODO: can't you calculate this?! store.get(pt(x, y), img.get(x, y)); size >>= 1; } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031291 |
| Snippet name: | storeIntegralImageProgressively [dev.] |
| Eternal ID of this version: | #1031291/6 |
| Text MD5: | 4b2bda488ecc10eaf5b209ab7de1036f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-03 05:37:39 |
| Source code size: | 499 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 349 / 484 |
| Version history: | 5 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |