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

7
LINES

< > BotCompany Repo | #1025270 // ii_orderScanResultBySimilarityToColor

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

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

static <A> LPair<A, RGB> ii_orderScanResultBySimilarityToColor(RGB color, LPair<A, RGB> l) {
  ret sortedByCalculatedFieldDesc(l, p -> colorDistance(color, p.b));
}

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

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: #1025270
Snippet name: ii_orderScanResultBySimilarityToColor
Eternal ID of this version: #1025270/2
Text MD5: 7f1ef90f0c898e4bb3645f6db7cedf0e
Transpilation MD5: 9e1d12220119eb11aec296e893d33b7c
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:52:28
Source code size: 328 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 151 / 229
Version history: 1 change(s)
Referenced in: [show references]