Libraryless. Click here for Pure Java version (5123L/33K).
static BWImage bwFoldImage_withCorners(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_partial(big, pat, x, y, max(0, wp-x), max(0, hp-y), min(wp, w+wp-x), min(hp, h+hp-y), 0)); ret out; }
Began life as a copy of #1027289
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: | #1027321 |
Snippet name: | bwFoldImage_withCorners - full convolution image including all partial matches |
Eternal ID of this version: | #1027321/3 |
Text MD5: | d96bfe5927473eb7257cdd6016c160ef |
Transpilation MD5: | cb06c81db3e3475a30a124ffd6f8c885 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-04 15:56:20 |
Source code size: | 463 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 208 / 293 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027323 - bwFoldImage_withCorners2 - full convolution image including all partial matches [dev.] #1027324 - bwFoldImage_withHalfCorners [dev.] - convolution image including partial matches where center of pattern is still in frame |