Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1025472 // bench_iiBrightnessOfArea_standardImage

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5357L/35K).

sS bench_iiBrightnessOfArea_standardImage() {
  IntegralImage ii = IntegralImage(whiteImage(100));
  
  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);
  ret printBenchResult(n);
}

Author comment

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: 235 / 341
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)