Libraryless. Click here for Pure Java version (5121L/33K).
static BWImage bwFoldImage(BWImage big, BWImage pat) { int wp = pat.getWidth(), hp = pat.getHeight(); int w = big.getWidth(), h = big.getHeight(); BWImage out = new(w-wp, h-hp); for (int y = 0; y < h-hp; y++) for (int x = 0; x < w-wp; x++) out.setPixel(x, y, bwImageSectionsSimilarity2(big, pat, x, y, 0)); ret out; }
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: | 407 / 556 | 
| Version history: | 4 change(s) | 
| Referenced in: | [show references] |