static L<Rect> bwRawImageSearch_exact(BWImage big, BWImage pat, int maxEntries) { new L<Rect> found; int wp = pat.getWidth(), hp = pat.getHeight(); int w = big.getWidth(), h = big.getHeight(); for (int y = 0; y < h-hp; y++) for (int x = 0; x < w-wp; x++) if (bwImageSectionsIdentical(big, pat, x, y)) { found.add(new Rect(x, y, wp, hp)); ping(); if (l(found) >= maxEntries) ret found; x += wp-1; } ret found; }
Began life as a copy of #1005893
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005927 |
Snippet name: | bwRawImageSearch_exact - only finds perfect matches |
Eternal ID of this version: | #1005927/3 |
Text MD5: | b218df3c3f3bae02e01afa19aaabbf34 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-25 13:06:04 |
Source code size: | 481 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 497 / 518 |
Version history: | 2 change(s) |
Referenced in: | [show references] |