// similarity = e.g. 0.99f static Rect rgbFindMostSimilarClip_multi(RGBImage big, L<RGBImage> patterns, L<Rect> clips, float similarity) { Rect found = null; int w = big.getWidth(), h = big.getHeight(); for (RGBImage pat : patterns) for (Rect r : clips) { float sim = rgbImageSimilarityResized(big.clip(r), pat, similarity); if (sim >= similarity) { found = r; similarity = sim; } } ret found; }
Began life as a copy of #1006885
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007107 |
Snippet name: | rgbFindMostSimilarClip_multi (multiple patterns) |
Eternal ID of this version: | #1007107/3 |
Text MD5: | ad978b9ca35a1b72035b99130d73db3c |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-03 02:04:50 |
Source code size: | 458 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 463 / 481 |
Version history: | 2 change(s) |
Referenced in: | [show references] |