Libraryless. Click here for Pure Java version (5250L/30K).
1 | static BufferedImage integralImageToBufferedImage(IntegralImage img) { |
2 | if (img == null) null; |
3 | int w = img.w, h = img.h; |
4 | BufferedImage out = newBufferedImage(w, h); |
5 | for y to h: |
6 | for x to w: |
7 | out.setRGB(x, y, ii_getPixel(img, x, y)); |
8 | ret out; |
9 | } |
10 | |
11 | static BufferedImage integralImageToBufferedImage(IIntegralImage img) { |
12 | ret img?.getBufferedImage(); |
13 | } |
Began life as a copy of #1019590
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: | #1025174 |
Snippet name: | integralImageToBufferedImage |
Eternal ID of this version: | #1025174/6 |
Text MD5: | d95cbe5ef565cd752f8afdac1fe5d1a2 |
Transpilation MD5: | 4cb7f6e4965d9eef2a5dfbfc684a085d |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-15 01:11:58 |
Source code size: | 378 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 312 / 424 |
Version history: | 5 change(s) |
Referenced in: | [show references] |