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

15
LINES

< > BotCompany Repo | #1010900 // show332Histogram

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

Uses 108K of libraries. Compilation Failed (9687L/68K).

1  
static ImageSurface show332Histogram(BufferedImage img) {
2  
  ret show332Histogram(new RGBImage(img));
3  
}
4  
5  
static ImageSurface show332Histogram(RGBImage img) {
6  
  ret show332Histogram(img, null);
7  
}
8  
9  
static ImageSurface show332Histogram(RGBImage img, ImageSurface is) {
10  
  final MultiSet<S> histogram = histogram332(img);
11  
  L<S> l = histogram.highestFirst();
12  
  print(l);
13  
  final int max = histogram.get(first(l));
14  
  ret showImage(mergeImagesVertically(allToRGBImage(map(l, col ->  imageFromInt(from332(col), max(1, iround(histogram.get(col)*100.0/max)), 30)))), is);
15  
}

Author comment

Began life as a copy of #1010760

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: #1010900
Snippet name: show332Histogram
Eternal ID of this version: #1010900/7
Text MD5: a4e23d2b13a195face8bbc8473647496
Transpilation MD5: f07238311d6bc93953f0aaa96e853e79
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 20:33:39
Source code size: 576 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 380 / 469
Version history: 6 change(s)
Referenced in: [show references]