Libraryless. Click here for Pure Java version (6338L/37K).
1 | // A = tag type |
2 | srecord noeq USwitchByBrightness<A>(NavigableMap<Double, A> brightnessToValue) implements IIIRecognizer<A> { |
3 | public void run( |
4 | IProbabilisticScheduler scheduler, |
5 | IIntegralImage img, |
6 | IVF1<A> valueToAction) { |
7 | new ProbabilisticDistanceBasedLookup( |
8 | scheduler, brightnessToValue, |
9 | brightness -> valueToAction.get(brightnessToValue.get(brightness)), |
10 | img.averageBrightness()) |
11 | .run(); |
12 | } |
13 | } |
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: | 202 / 380 |
Version history: | 11 change(s) |
Referenced in: | [show references] |