Skip to content

raisin::RayraiWindow::RgbaLuminanceHistogram ​

struct · #include <rayrai/RayraiWindow.hpp>

Display-space luminance histogram returned by analyzeRgbaLuminanceHistogram().

Public attributes ​

width ​

cpp
int width

Image width passed in.

height ​

cpp
int height

Image height passed in.

pixelCount ​

cpp
size_t pixelCount

Number of pixels counted.

binCount ​

cpp
size_t binCount

Number of equal-width bins over luminance [0, 1].

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.

RaiSim — physics for robotics and AI.