Libraryless. Click here for Pure Java version (6338L/37K).
// A = tag type srecord noeq USwitchByBrightness<A>(NavigableMap<Double, A> brightnessToValue) implements IIIRecognizer<A> { public void run( IProbabilisticScheduler scheduler, IIntegralImage img, IVF1<A> valueToAction) { new ProbabilisticDistanceBasedLookup( scheduler, brightnessToValue, brightness -> valueToAction.get(brightnessToValue.get(brightness)), img.averageBrightness()) .run(); } }
Began life as a copy of #1032020
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032022 |
Snippet name: | USwitchByBrightness |
Eternal ID of this version: | #1032022/12 |
Text MD5: | 006c9168f240c4597d4bf65ee991815b |
Transpilation MD5: | 8cedd96504c3d75f4ecb006792eb4c68 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-11 03:27:26 |
Source code size: | 450 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 201 / 378 |
Version history: | 11 change(s) |
Referenced in: | [show references] |