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

11
LINES

< > BotCompany Repo | #1024818 // chessOCR_varySegmenterGain

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

Libraryless. Click here for Pure Java version (5958L/38K).

static ItIt<ParameterizedSegmenter> chessOCR_varySegmenterGain(ParameterizedSegmenter baseSegmenter, O... _) {
  optPar float minGain = 1f;
  optPar float maxGain = 10f;
  optPar float gainStep = 1f;
  
  ret mapI(floatIota(minGain, maxGain, gainStep), gain -> {
    ParameterizedSegmenter seg = baseSegmenter.clone();
    seg.dc_gain = gain;
    ret seg;
  });
}

Author comment

Began life as a copy of #1024803

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024818
Snippet name: chessOCR_varySegmenterGain
Eternal ID of this version: #1024818/4
Text MD5: 24bb38e3b6f720691c4ec2e17609379f
Transpilation MD5: 8833421313f26caf50138945960adc35
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-26 13:19:58
Source code size: 373 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 171 / 263
Version history: 3 change(s)
Referenced in: [show references]