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

6
LINES

< > BotCompany Repo | #1035847 // preciseCertaintyImage

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (10892L) is out of date.

1  
// white = certain (either completely black or completely white)
2  
// black = uncertain (exactly 50% gray)
3  
static FloatBWImage preciseCertaintyImage(IBWImage img) {
4  
  ret floatBWImageFromFunction(img.getWidth(), img.getHeight(),
5  
    (x, y) -> g22pixelCertainty(img.getFloatPixel(x, y)));
6  
}

Author comment

Began life as a copy of #1035826

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035847
Snippet name: preciseCertaintyImage
Eternal ID of this version: #1035847/3
Text MD5: ae65896779de38fa7f662ce918198613
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-05 19:20:19
Source code size: 292 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 142 / 188
Version history: 2 change(s)
Referenced in: [show references]