Libraryless. Click here for Pure Java version (6357L/45K).
1 | svoid bench_iiBrightnessOfArea() { |
2 | IntegralImage ii = integralImageFromScreenshot(); |
3 | |
4 | int n = oneBillion(), w = ii.getWidth(), h = ii.getHeight(); |
5 | double d = 0; |
6 | time { repeat n { d += ii_averageBrightnessOfArea(ii, 0, 0, w, h); } } |
7 | print(d); |
8 | printBenchResult(n); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1025233 |
Snippet name: | bench_iiBrightnessOfArea |
Eternal ID of this version: | #1025233/1 |
Text MD5: | 6b8a6ed469e56c1d454680cc65a787c4 |
Transpilation MD5: | f6f4cdea5f1ec1584851aa0c26821b18 |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-14 17:06:46 |
Source code size: | 286 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 232 / 319 |
Referenced in: | [show references] |