Libraryless. Compilation Failed (6188L/37K).
1 | // interprets colros in normal scan line fashion |
2 | static IntegralImage integralImageFromColors(int w, int h, Color... colors) { |
3 | RGBImage img = new(w, h); |
4 | int i = 0; |
5 | for y to h: |
6 | for x to w: |
7 | img.set(x, y, colors[i++]); |
8 | ret IntegralImage(img); |
9 | } |
10 | |
11 | static IntegralImage integralImageFromColors(int w, int h, L<Color> colors) { |
12 | ret integralImageFromColors(w, h, toArray Color(colors)); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031292 |
Snippet name: | integralImageFromColors |
Eternal ID of this version: | #1031292/3 |
Text MD5: | 99182871bde2402c1f0c84942300fee0 |
Transpilation MD5: | 849621c48070b4ef8fd48241af003f71 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-03 05:33:48 |
Source code size: | 412 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 140 / 206 |
Version history: | 2 change(s) |
Referenced in: | [show references] |