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).

static double[] bwImage_standardDeviationPerRow(BWImage img) {
  int w = img.getWidth(), h = img.getHeight();
  double[] l = new[h];
  double[] row = new[w];
  for y to h: {
    for x to w: row[x] = img.getFloatPixel(x, y);
    l[y] = standardDeviation(row);
  }
  ret l;
}

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: 215 / 301
Version history: 2 change(s)
Referenced in: [show references]