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.

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

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: 141 / 187
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1035869 - g22pixelCertainty