1 | static IIntegralImage toIISingleColorIfPossible(IIntegralImage img) { |
2 | double[] color = uRoot(img).color(); |
3 | if (!allFractionsZero(color)) ret img; |
4 | |
5 | ret IISingleColor(doublesToInts(color)); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032026 |
Snippet name: | toIISingleColorIfPossible [dev.] |
Eternal ID of this version: | #1032026/1 |
Text MD5: | 2fc8790e6d933f769ab49e0e2f666921 |
Author: | stefan |
Category: | javax / image recognition |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-11 03:10:42 |
Source code size: | 202 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 154 / 176 |
Referenced in: | [show references] |