1 | static float img_upperWidthToLowerWidth(BWImage image) { |
2 | float upper = img_averageWidth(image, 0, (int) (image.getHeight()/3f)); |
3 | float lower = img_averageWidth(image, (int) (image.getHeight()*2/3f), image.getHeight()); |
4 | float ratio = safeRatio(upper, lower); |
5 | //print("upper: " + upper + ", lower: " + lower + ", ratio: " + ratio); |
6 | return ratio; |
7 | } |
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: | 527 / 547 |
Referenced in: | [show references] |