Libraryless. Click here for Pure Java version (2577L/16K/55K).
1 | !7 |
2 | |
3 | p { |
4 | RGBImage rgb1 = loadImage(#1006432); |
5 | int x1 = 444; |
6 | RGBImage rgb2 = loadImage(#1006433); |
7 | int x2 = 418; |
8 | |
9 | new XLearner(litorderedmap(rgb1, 444, rgb2, 418)); |
10 | } |
11 | |
12 | sclass XLearner { |
13 | sclass Example { |
14 | RGBImage rgb; |
15 | int x; |
16 | |
17 | RGBImage col() { |
18 | ret rgbCol(rgb, x); |
19 | } |
20 | } |
21 | |
22 | new L<Example> examples; |
23 | |
24 | *(Map<RGBImage, Int> _examples) { |
25 | for (RGBImage rgb : keys(_examples)) |
26 | examples.add(nu(Example.class, +rgb, x := _examples.get(rgb))); |
27 | |
28 | for (Example e : examples) |
29 | print(rgbAverageBrightness(e.col())); |
30 | } |
31 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006434 |
Snippet name: | Windows XP: Find Taskbar On the Left [dev.] |
Eternal ID of this version: | #1006434/1 |
Text MD5: | a005393937cd45fd1cba8d57eff1651a |
Transpilation MD5: | e1ba9d0f97420c0458c946e7385abd3d |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-02 01:10:54 |
Source code size: | 602 bytes / 31 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 614 / 723 |
Referenced in: | [show references] |