Libraryless. Click here for Pure Java version (5357L/35K).
1 | sS bench_iiBrightnessOfArea_standardImage() { |
2 | IntegralImage ii = IntegralImage(whiteImage(100)); |
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 | ret printBenchResult(n); |
9 | } |
Began life as a copy of #1025233
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, mqqgnosmbjvj, ofpaelxlmzfo, omdjrrnzbjjv, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1025472 |
Snippet name: | bench_iiBrightnessOfArea_standardImage |
Eternal ID of this version: | #1025472/1 |
Text MD5: | 2484efbfe3a344d4463d6e6fcc21869b |
Transpilation MD5: | 4dcaaf2d28bc3785b71b7d17769b0bda |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-29 17:39:53 |
Source code size: | 302 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 234 / 341 |
Referenced in: | [show references] |