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

7
LINES

< > BotCompany Repo | #1005854 // img_upperWidthToLowerWidth

JavaX fragment (include)

static float img_upperWidthToLowerWidth(BWImage image) {
  float upper = img_averageWidth(image, 0, (int) (image.getHeight()/3f));
  float lower = img_averageWidth(image, (int) (image.getHeight()*2/3f), image.getHeight());
  float ratio = safeRatio(upper, lower);
  //print("upper: " + upper + ", lower: " + lower + ", ratio: " + ratio);
  return ratio;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005854
Snippet name: img_upperWidthToLowerWidth
Eternal ID of this version: #1005854/1
Text MD5: 0c713d3e9d29915d368f709926ad0b95
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-11 08:01:45
Source code size: 361 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 525 / 545
Referenced in: [show references]