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

7
LINES

< > BotCompany Repo | #1025273 // ii_orderScanResultBySimilarityToColor2 - returns similarities

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

Libraryless. Click here for Pure Java version (2397L/15K).

static <A> LPair<A, Float> ii_orderScanResultBySimilarityToColor2(RGB color, LPair<A, RGB> l) {
  ret pairsSortedByBDesc(mapPairB(l, c -> colorSimilarity(color, c)));
}

static <A> LPair<A, Float> ii_orderScanResultBySimilarityToColor2(Color color, LPair<A, RGB> l) {
  ret ii_orderScanResultBySimilarityToColor2(RGB(color), l);
}

Author comment

Began life as a copy of #1025270

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: #1025273
Snippet name: ii_orderScanResultBySimilarityToColor2 - returns similarities
Eternal ID of this version: #1025273/2
Text MD5: 8b170f99f6e29532f7883d13fc793f74
Transpilation MD5: 456b53b8245956f8fd3b857e86e00f9f
Author: stefan
Category: javax / image analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-17 01:57:48
Source code size: 336 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 244 / 320
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)