static RGBImage integralImageToRGBImage(IntegralImage img) { if (img == null) null; int w = img.w, h = img.h; RGBImage out = new(w, h); for y to h: for x to w: { int r = integralImage_sumRect(img, x, y, x+1, y+1, 0); int g = integralImage_sumRect(img, x, y, x+1, y+1, 1); int b = integralImage_sumRect(img, x, y, x+1, y+1, 2); out.setPixel(x, y, r, g, b); } ret out; }
Began life as a copy of #1025174
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025175 |
Snippet name: | integralImageToRGBImage |
Eternal ID of this version: | #1025175/1 |
Text MD5: | afc9e931ca523df0978bf50a1418caff |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-10 14:24:42 |
Source code size: | 422 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 252 / 282 |
Referenced in: | [show references] |