static float[] anal_singlePixelDents(float[] d) { int n = l(d); float[] x = new float[n]; for (int i = 1; i < n-1; i++) { float a = d[i-1], b = d[i], c = d[i+1]; if (a > b && c > b) x[i] = a+c-2*b; } ret x; }
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: | #1006369 | 
| Snippet name: | anal_singlePixelDents - anal stands for "analysis", you moron | 
| Eternal ID of this version: | #1006369/1 | 
| Text MD5: | 35d14374a4ba9b69f8cfae0b1aa96928 | 
| Author: | stefan | 
| Category: | javax / imaging | 
| Type: | JavaX source code | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2016-12-29 22:03:20 | 
| Source code size: | 243 bytes / 10 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 670 / 707 | 
| Referenced in: | [show references] |