1 | // similarity = e.g. 0.99f |
2 | // returns found image plus state |
3 | static FoundImgPlus<S> rgbRawSingleImageSearch_multiplePatterns_states(RGBImage big, LPair<RGBImage, S> patterns, float similarity) {
|
4 | FoundImgPlus<S> found = null; |
5 | for (Pair<RGBImage, S> pat : patterns) {
|
6 | FoundImg found2 = rgbImageSearch_best(big, pat.a, similarity); |
7 | if (found2 != null) {
|
8 | found = FoundImgPlus(found2.r, found2.sim, pat.b); |
9 | similarity = found.sim; |
10 | } |
11 | } |
12 | ret found; |
13 | } |
Began life as a copy of #1019524
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019554 |
| Snippet name: | rgbRawSingleImageSearch_multiplePatterns_states |
| Eternal ID of this version: | #1019554/3 |
| Text MD5: | ca0fae3efec037ca1dafbfe760dfc847 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-12 00:47:25 |
| Source code size: | 486 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 567 / 587 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |