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

11
LINES

< > BotCompany Repo | #1006763 // rgbDistance - per-pixel difference between two RGBImages (from 0 to 1)

JavaX fragment (include)

static float rgbDistance(RGBImage a, RGBImage b, float maxDistance) {
  ret 1f-rgbImageSimilarityResized(a, b, 1f-maxDistance);
}

static float rgbDistance(RGBImage a, RGBImage b) {
  ret rgbDistance(a, b, 1);
}

static float rgbDistance(RGB a, RGB b) {
  ret rgbDiff(a, b);
}

Author comment

Began life as a copy of #1006762

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: #1006763
Snippet name: rgbDistance - per-pixel difference between two RGBImages (from 0 to 1)
Eternal ID of this version: #1006763/6
Text MD5: 7f2bdeeae4c8f43da1d7cd3940040a82
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-15 00:50:31
Source code size: 286 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 563 / 575
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1006774 - bwDistance - per-pixel difference between two BWImages