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

5
LINES

< > BotCompany Repo | #1005857 // img_width

JavaX fragment (include)

static int img_width(BWImage image, int y) {
  int x2 = img_rightmostPoint(image, y);
  int x1 = img_leftmostPoint(image, y);
  return max(0, x2-x1);
}

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: #1005857
Snippet name: img_width
Eternal ID of this version: #1005857/1
Text MD5: c53f422460531809e72b3a3a294b19dc
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:03:46
Source code size: 155 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 420 / 431
Referenced in: [show references]