static L<Int> dominant332colors(RGBImage img) { int[] array = histogram332_array(img); new MultiSet<Int> ms; for i over array: ms.add(i, array[i]); ret ms.highestFirst(); } static L<Int> dominant332colors(BufferedImage img) { ret dominant332colors(RGBImage(img)); }
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: | 412 / 473 |
| Referenced in: | [show references] |