// similarity = e.g. 0.99f
// returns found image plus state
static FoundImgPlus<S> rgbRawSingleImageSearch_multiplePatterns_states(RGBImage big, LPair<RGBImage, S> patterns, float similarity) {
FoundImgPlus<S> found = null;
for (Pair<RGBImage, S> pat : patterns) {
FoundImg found2 = rgbImageSearch_best(big, pat.a, similarity);
if (found2 != null) {
found = FoundImgPlus(found2.r, found2.sim, pat.b);
similarity = found.sim;
}
}
ret found;
}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: | 709 / 714 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |