static long totalPixelCount(L l) { long sum = 0; for (O o : l) sum += totalPixelCount(o); ret sum; } static long totalPixelCount(O o) { if (o << BWImage) ret o/BWImage.getWidth()*o/BWImage.getHeight(); ret 0L; }
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: | #1005963 |
Snippet name: | totalPixelCount - number of all pixels in an image or list of images |
Eternal ID of this version: | #1005963/1 |
Text MD5: | dea77d548b21b6e3341d17d5f02e0c58 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-13 23:23:30 |
Source code size: | 241 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 435 / 479 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033373 - pixelCount |