Transpiled version (11429L) is out of date.
static BufferedImage grayImageFromIBWIntegralImage(IBWIntegralImage img) { int w = img.getWidth(), h = img.getHeight(); byte[] pixels = new[w*h]; int i = 0; for y to h: for x to w: { int pixel = img.getPixelBrightness(x, y); ifdef grayImageFromIBWIntegralImage_debug if (x == 0 && y == 0) print(+pixel); endifdef pixels[i++] = clampToUByte(pixel; } ret newGrayBufferedImage(w, h, pixels); }
Began life as a copy of #1033440
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033567 | 
| Snippet name: | grayImageFromIBWIntegralImage | 
| Eternal ID of this version: | #1033567/5 | 
| Text MD5: | f85afe59caf88f3080dd906b1aee1988 | 
| Author: | stefan | 
| Category: | javax / imaging | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-11-03 18:16:55 | 
| Source code size: | 453 bytes / 14 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 386 / 516 | 
| Version history: | 4 change(s) | 
| Referenced in: | [show references] |