static BWImage img_bw_vdiff(BWImage a) { int w = a.w(), h = a.h()-1; BWImage b = new BWImage(w, h); for y to h: for x to w: b.setPixel(x, y, Math.abs(a.getPixel(x, y)-a.getPixel(x, y+1))); ret b; }
Began life as a copy of #1005997
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: | #1006000 |
Snippet name: | img_bw_vdiff |
Eternal ID of this version: | #1006000/1 |
Text MD5: | 6e9fbdf33a275a9f6bd0a9bfd6fa8e10 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-14 02:07:19 |
Source code size: | 215 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 433 / 490 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |