|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< float > MayaFlux::Kinesis::Vision::rgba_to_gray | ( | std::span< const float > | rgba, |
| uint32_t | w, | ||
| uint32_t | h | ||
| ) |
Convert RGBA to luminance gray using BT.601 coefficients.
Output is one float per pixel. Alpha channel is discarded. Coefficients: R*0.299 + G*0.587 + B*0.114
| rgba | Interleaved RGBA span, size must be w * h * 4. |
| w | Image width in pixels. |
| h | Image height in pixels. |
Definition at line 87 of file PixelOps.cpp.
References h, and rgba_to_gray().
Here is the call graph for this function: