Libraryless. Click here for Pure Java version (11974L/69K).
1 | static RasterBars reproduceRasterBars(IBWIntegralImage ii) { |
2 | var thinImage = scaledBWImageFromBWIntegralImage_withMeta(ii, 1, ii.getHeight()); |
3 | var streaks = streaksOfRepeatingElements(listFromFunction(thinImage.getHeight(), y -> thinImage.getInt(0, y))); |
4 | ret new RasterBars(ii.getWidth(), ii.getHeight(), streaks); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033728 |
Snippet name: | reproduceRasterBars |
Eternal ID of this version: | #1033728/8 |
Text MD5: | 3090e43eb2f350cec3dc9cfdaaa6b5f9 |
Transpilation MD5: | d405b0cf609a1657173436c032c754e1 |
Author: | stefan |
Category: | javax / gazelle v |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-12-30 22:29:08 |
Source code size: | 326 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 156 / 239 |
Version history: | 7 change(s) |
Referenced in: | [show references] |