(rgb: [f32; 3])
| 56 | } |
| 57 | |
| 58 | fn luminance(rgb: [f32; 3]) -> f32 { |
| 59 | 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2] |
| 60 | } |
| 61 | |
| 62 | /// Load an RGB image as normalized linear f32 triples. We operate in |
| 63 | /// gamma-encoded (sRGB byte) space rather than re-linearizing — the |
no outgoing calls
no test coverage detected