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)

1  
static float rgbDistance(RGBImage a, RGBImage b, float maxDistance) {
2  
  ret 1f-rgbImageSimilarityResized(a, b, 1f-maxDistance);
3  
}
4  
5  
static float rgbDistance(RGBImage a, RGBImage b) {
6  
  ret rgbDistance(a, b, 1);
7  
}
8  
9  
static float rgbDistance(RGB a, RGB b) {
10  
  ret rgbDiff(a, b);
11  
}

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: 562 / 574
Version history: 5 change(s)
Referenced in: [show references]