1 | static float rgbInnerPrecision(RGBImage img) { |
2 | int w = img.w(), h = img.h(); |
3 | ret min(1f, 128*(1f-avg( |
4 | rgbLocalSimilarity(img, new Rect(0, 0, w-1, h), new Rect(1, 0, w-1, h)), |
5 | rgbLocalSimilarity(img, new Rect(0, 0, w, h-1), new Rect(0, 1, w, h-1))))); |
6 | } |
Began life as a copy of #1006805
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: | #1006811 |
Snippet name: | rgbInnerPrecision |
Eternal ID of this version: | #1006811/1 |
Text MD5: | 738ceb14922f788abab9652d450df31b |
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:14:38 |
Source code size: | 269 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 578 / 534 |
Referenced in: | [show references] |