Libraryless. Compilation Failed (6188L/37K).
// interprets colros in normal scan line fashion static IntegralImage integralImageFromColors(int w, int h, Color... colors) { RGBImage img = new(w, h); int i = 0; for y to h: for x to w: img.set(x, y, colors[i++]); ret IntegralImage(img); } static IntegralImage integralImageFromColors(int w, int h, L<Color> colors) { ret integralImageFromColors(w, h, toArray Color(colors)); }
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: | 141 / 207 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |