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

6
LINES

< > BotCompany Repo | #1005859 // img_rightMostPoint

JavaX fragment (include)

static int img_rightmostPoint(BWImage image, int y) {
  int x2 = image.getWidth();
  while (x2 > 0 && image.getPixel(x2-1, y) == 1f)
    --x2;
  return x2;
}

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: #1005859
Snippet name: img_rightMostPoint
Eternal ID of this version: #1005859/1
Text MD5: 3354eae9f6e00e9410c037b68a98371a
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:04:47
Source code size: 162 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 461 / 458
Referenced in: [show references]