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: | 526 / 546 |
Referenced in: | #1005862 - img_centralPixelSet #1005863 - img_leftishness #1006654 - Standard functions list 2 (LIVE, continuation of #761) |