Libraryless. Click here for Pure Java version (10723L/62K).
svoid test_BWImage() { assertEqualsVerbose(127.0, BWImage(2, 2, 0.5f).averageBrightness()); assertEqualsVerbose(63.0, BWImage(2, 2, 0.25f).averageBrightness()); assertEqualsVerbose(191.25, BWImage(2, 2, new float[] {0, 1, 1, 1}).averageBrightness()); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035767 |
Snippet name: | test_BWImage |
Eternal ID of this version: | #1035767/4 |
Text MD5: | a807e81daef032f55bd97583e6211684 |
Transpilation MD5: | 5ea16cd41ae1d708a035e9bde1870dff |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-21 19:08:17 |
Source code size: | 262 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 124 / 178 |
Version history: | 3 change(s) |
Referenced in: | [show references] |