1 | static float[] bwImageColumnBrightnesses_generic(virtual BWImage img) { |
2 | int w = rcall_int getWidth(img), h = rcall_int getHeight(img); |
3 | float[] f = new float[w]; |
4 | for x to w: |
5 | f[x] = toFloat(rcall averageBrightness(rcall clip(img, x, 0, 1, h))); |
6 | ret f; |
7 | } |
Began life as a copy of #1005708
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: | #1025086 |
Snippet name: | bwImageColumnBrightnesses_generic |
Eternal ID of this version: | #1025086/2 |
Text MD5: | 155b7aff6ae6530c7a6735fdeba15faf |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-05 13:53:09 |
Source code size: | 271 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 220 / 248 |
Version history: | 1 change(s) |
Referenced in: | [show references] |