1 | static float rgbLocalPrecision(RGBImage img, Rect r) { |
2 | ret min(1f, 128*(1f-avg( |
3 | rgbLocalSimilarity(img, r, translateRect(r, r.x2() == img.w() ? -1 : 1, 0)), |
4 | rgbLocalSimilarity(img, r, translateRect(r, 0, r.y2() == img.h() ? -1 : 1))))); |
5 | } |
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: | #1006805 |
Snippet name: | rgbLocalPrecision |
Eternal ID of this version: | #1006805/4 |
Text MD5: | b33828540b1d9d846f8d42bc21d7f914 |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-05 03:05:24 |
Source code size: | 252 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 521 / 513 |
Version history: | 3 change(s) |
Referenced in: | [show references] |