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

9
LINES

< > BotCompany Repo | #1006362 // Make simple image "histogram" (brightness by color)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (5003L/34K/127K).

!7

p {
  RGBImage rgb = loadImage(#1006358);
  float[] data = new float[rgb.w()];
  for x over data:
    data[x] = rgbAverageBrightness(rgbCol(rgb, x));
  showImage(mergeImagesVertically(rgb, rgbMakeGraph(data;
}

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: #1006362
Snippet name: Make simple image "histogram" (brightness by color)
Eternal ID of this version: #1006362/3
Text MD5: 3613d62c6180f605c3de5ca62ca2d494
Transpilation MD5: a459a8033e5b0a8e73b0d2e77916709f
Author: stefan
Category: javax / imaging
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-29 16:43:36
Source code size: 221 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 461
Version history: 2 change(s)
Referenced in: [show references]