1 | static BWImage activityMap332_v1(BufferedImage image) {
|
2 | ret activityMap332_v1(image, 16); |
3 | } |
4 | |
5 | static BWImage activityMap332_v1(BufferedImage image, int tileSize) {
|
6 | ret twoLevelIntListToBWImage((L) twoLevelMap( |
7 | func(BufferedImage img) -> Int {
|
8 | colorCount332_max(2, img) > 1 ? 0 : 255 |
9 | }, |
10 | imageToRoughlyFixedSizeTiles_twoLevelList(shootScreen2(), tileSize))); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020690 |
| Snippet name: | activityMap332_v1 - black pixels for activity, white for single color |
| Eternal ID of this version: | #1020690/1 |
| Text MD5: | b0a6168189bdf46cefd1198e6606ccd2 |
| Author: | stefan |
| Category: | javax / image analysis |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-31 00:50:05 |
| Source code size: | 389 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 548 / 578 |
| Referenced in: | [show references] |