// similarity = e.g. 0.99f static Rect rgbFindMostSimilarClip(RGBImage big, RGBImage pat, L<Rect> clips, float similarity) { Rect found = null; int w = big.getWidth(), h = big.getHeight(); 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 #1006802
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: | #1006885 |
Snippet name: | rgbFindMostSimilarClip |
Eternal ID of this version: | #1006885/4 |
Text MD5: | dbc40f652167f3c1f634374c1d1f7fde |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-14 00:51:17 |
Source code size: | 397 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 619 / 627 |
Version history: | 3 change(s) |
Referenced in: | [show references] |