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

10
LINES

< > BotCompany Repo | #1026921 // bwImage_standardDeviationPerRow

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

Libraryless. Click here for Pure Java version (5147L/33K).

1  
static double[] bwImage_standardDeviationPerRow(BWImage img) {
2  
  int w = img.getWidth(), h = img.getHeight();
3  
  double[] l = new[h];
4  
  double[] row = new[w];
5  
  for y to h: {
6  
    for x to w: row[x] = img.getFloatPixel(x, y);
7  
    l[y] = standardDeviation(row);
8  
  }
9  
  ret l;
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026921
Snippet name: bwImage_standardDeviationPerRow
Eternal ID of this version: #1026921/3
Text MD5: 8f0d23eccf84449a0633c685476bcc60
Transpilation MD5: d4cc457054476992a46bcfb97551dbcf
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-02 20:09:06
Source code size: 282 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 304
Version history: 2 change(s)
Referenced in: [show references]