raisin::RgbaLuminanceHistogram
struct · #include <rayrai/Capture.hpp>
Display-space luminance histogram of an RGBA8 image (RayraiWindow::analyzeRgbaLuminanceHistogram()).
Uses the same Rec. 709 luma as RgbaLuminanceMetrics; bins split [0, 1] evenly.
Public attributes
width
cpp
int widthImage width passed in, pixels.
height
cpp
int heightImage height passed in, pixels.
pixelCount
cpp
size_t pixelCountPixels counted.
binCount
cpp
size_t binCountNumber of bins requested.
peakBin
cpp
size_t peakBinIndex of the most populated bin.
peakFraction
cpp
double peakFractionFraction of pixels in peakBin.
bins
cpp
std::vector<size_t> binsPixel count per bin (binCount entries).