Skip to content

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 width

Image width passed in, pixels.

height ​

cpp
int height

Image height passed in, pixels.

pixelCount ​

cpp
size_t pixelCount

Pixels counted.

binCount ​

cpp
size_t binCount

Number of bins requested.

peakBin ​

cpp
size_t peakBin

Index of the most populated bin.

peakFraction ​

cpp
double peakFraction

Fraction of pixels in peakBin.

bins ​

cpp
std::vector<size_t> bins

Pixel count per bin (binCount entries).

RaiSim — physics for robotics and AI.