1 | static L<Int> dominant332colors(RGBImage img) { |
2 | int[] array = histogram332_array(img); |
3 | new MultiSet<Int> ms; |
4 | for i over array: |
5 | ms.add(i, array[i]); |
6 | ret ms.highestFirst(); |
7 | } |
8 | |
9 | static L<Int> dominant332colors(BufferedImage img) { |
10 | ret dominant332colors(RGBImage(img)); |
11 | } |
Began life as a copy of #1023026
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024902 |
Snippet name: | dominant332colors |
Eternal ID of this version: | #1024902/1 |
Text MD5: | bf388070d8d2c48d2423b16bfde30bbe |
Author: | stefan |
Category: | javax / image analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-29 13:02:38 |
Source code size: | 290 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 208 / 260 |
Referenced in: | [show references] |