Libraryless. Click here for Pure Java version (6357L/45K).
svoid bench_iiBrightnessOfArea() { IntegralImage ii = integralImageFromScreenshot(); int n = oneBillion(), w = ii.getWidth(), h = ii.getHeight(); double d = 0; time { repeat n { d += ii_averageBrightnessOfArea(ii, 0, 0, w, h); } } print(d); printBenchResult(n); }
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: | 231 / 317 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1025472 - bench_iiBrightnessOfArea_standardImage |