Libraryless. Click here for Pure Java version (5121L/33K).
1 | static BWImage bwFoldImage(BWImage big, BWImage pat) { |
2 | int wp = pat.getWidth(), hp = pat.getHeight(); |
3 | int w = big.getWidth(), h = big.getHeight(); |
4 | BWImage out = new(w-wp, h-hp); |
5 | for (int y = 0; y < h-hp; y++) |
6 | for (int x = 0; x < w-wp; x++) |
7 | out.setPixel(x, y, bwImageSectionsSimilarity2(big, pat, x, y, 0)); |
8 | ret out; |
9 | } |
Began life as a copy of #1005396
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027289 |
Snippet name: | bwFoldImage |
Eternal ID of this version: | #1027289/5 |
Text MD5: | adfc9c12cebdf72d8d2c09ca64e124d3 |
Transpilation MD5: | 31210df64ddc558859bcea32dd8d1a47 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-29 23:10:10 |
Source code size: | 345 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 216 / 316 |
Version history: | 4 change(s) |
Referenced in: | [show references] |