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

7
LINES

< > BotCompany Repo | #1032020 // ufr_brightnessTreeMultiMap

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

Libraryless. Click here for Pure Java version (5789L/32K).

1  
// A is the "tag" type
2  
static <A> MultiMap<Double, A> ufr_brightnessTreeMultiMap(Iterable<Pair<A, IIntegralImage>> taggedImages) {
3  
  MultiMap<Double, A> multiMap = treeMultiMap();
4  
  for (A tag, IIntegralImage img : unpair taggedImages)
5  
    multiMap.put(uRoot(img).averageBrightness(), tag);
6  
  ret multiMap;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032020
Snippet name: ufr_brightnessTreeMultiMap
Eternal ID of this version: #1032020/2
Text MD5: a8fc67399990691888d5033971392a64
Transpilation MD5: 98aa5112b7a00277867e95a5744abea8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 02:39:09
Source code size: 314 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 205
Version history: 1 change(s)
Referenced in: [show references]