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

static ImageSurface show332Histogram(BufferedImage img) {
  ret show332Histogram(new RGBImage(img));
}

static ImageSurface show332Histogram(RGBImage img) {
  ret show332Histogram(img, null);
}

static ImageSurface show332Histogram(RGBImage img, ImageSurface is) {
  final MultiSet<S> histogram = histogram332(img);
  L<S> l = histogram.highestFirst();
  print(l);
  final int max = histogram.get(first(l));
  ret showImage(mergeImagesVertically(allToRGBImage(map(l, col ->  imageFromInt(from332(col), max(1, iround(histogram.get(col)*100.0/max)), 30)))), is);
}

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: 307 / 375
Version history: 6 change(s)
Referenced in: [show references]