1 | static L<Rect> bwRawImageSearch_exact(BWImage big, BWImage pat, int maxEntries) { |
2 | new L<Rect> found; |
3 | int wp = pat.getWidth(), hp = pat.getHeight(); |
4 | int w = big.getWidth(), h = big.getHeight(); |
5 | for (int y = 0; y < h-hp; y++) |
6 | for (int x = 0; x < w-wp; x++) |
7 | if (bwImageSectionsIdentical(big, pat, x, y)) { |
8 | found.add(new Rect(x, y, wp, hp)); |
9 | ping(); |
10 | if (l(found) >= maxEntries) ret found; |
11 | x += wp-1; |
12 | } |
13 | ret found; |
14 | } |
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: | 499 / 521 |
Version history: | 2 change(s) |
Referenced in: | [show references] |