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

14
LINES

< > BotCompany Repo | #1010899 // histogram332

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

Libraryless. Click here for Pure Java version (3069L/19K).

1  
static MultiSet<S> histogram332(RGBImage img) {
2  
  int[] a = histogram332_array(img);
3  
  new MultiSet<S> histogram;
4  
  for i over a: {
5  
    int x = a[i];
6  
    if (x != 0)
7  
      histogram.add(byte332ToString(i), x);
8  
  }
9  
  ret histogram;
10  
}
11  
12  
static MultiSet<S> histogram332(BufferedImage img) {
13  
  ret histogram332(RGBImage(img));
14  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010899
Snippet name: histogram332
Eternal ID of this version: #1010899/4
Text MD5: 5cc0f1d53d20e5384f0b3c4865b72dff
Transpilation MD5: c7436f04a40cf3a9e876290054a38779
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-24 23:47:56
Source code size: 336 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 517 / 596
Version history: 3 change(s)
Referenced in: [show references]