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

6
LINES

< > BotCompany Repo | #1005858 // img_leftMostPoint

JavaX fragment (include)

public static int img_leftmostPoint(BWImage image, int y) {
  int x1 = 0;
  while (x1 < image.getWidth() && image.getPixel(x1, y) == 1f)
    ++x1;
  return 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: #1005858
Snippet name: img_leftMostPoint
Eternal ID of this version: #1005858/1
Text MD5: d9c116b7b0db208ebdb0ffd91a9ed964
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:24
Source code size: 166 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 436 / 455
Referenced in: [show references]