Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1006805 // rgbLocalPrecision

JavaX fragment (include)

static float rgbLocalPrecision(RGBImage img, Rect r) {
  ret min(1f, 128*(1f-avg(
    rgbLocalSimilarity(img, r, translateRect(r, r.x2() == img.w() ? -1 : 1, 0)),
    rgbLocalSimilarity(img, r, translateRect(r, 0, r.y2() == img.h() ? -1 : 1)))));
}

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: 519 / 510
Version history: 3 change(s)
Referenced in: [show references]