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

7
LINES

< > BotCompany Repo | #1006345 // bwImageRowBrightnesses

JavaX fragment (include)

1  
static float[] bwImageRowBrightnesses(BWImage img) {
2  
  int w = img.getWidth(), h = img.getHeight();
3  
  float[] f = new float[h];
4  
  for y to h:
5  
    f[y] = (float) img.clip(0, y, w, 1).averageBrightness();
6  
  ret f;
7  
}

Author comment

Began life as a copy of #1005708

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006345
Snippet name: bwImageRowBrightnesses
Eternal ID of this version: #1006345/1
Text MD5: eee79d640caa17847e853c5b0db4d47b
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-28 23:13:20
Source code size: 221 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 475 / 513
Referenced in: [show references]