Skip to content

raisin::ExposureRecommendation ​

struct · #include <rayrai/Capture.hpp>

Bounded exposure suggestion derived from RgbaLuminanceMetrics (RayraiWindow::recommendExposure()). Never applied automatically.

Highlights are controlled first (p95 above target or more than 1 % clipped channels), then midtones are lifted (median below 70 % of target) or lowered (above 135 %).

Public attributes ​

valid ​

cpp
bool valid

False when the inputs were invalid (reason "invalid_input").

changed ​

cpp
bool changed

True when the recommended scale differs from 1 by more than 2 %.

underexposed ​

cpp
bool underexposed

Midtones are below target.

overexposed ​

cpp
bool overexposed

Highlights or midtones are above target.

clippingRisk ​

cpp
bool clippingRisk

More than 1 % of channel values are clipped.

currentExposure ​

cpp
double currentExposure

Exposure the metrics were captured with.

recommendedExposure ​

cpp
double recommendedExposure

Suggested exposure, clamped to [minExposure, maxExposure].

recommendedExposureScale ​

cpp
double recommendedExposureScale

recommendedExposure / currentExposure.

targetMedianLuminance ​

cpp
double targetMedianLuminance

Target median display luminance used.

targetP95Luminance ​

cpp
double targetP95Luminance

Target 95th-percentile display luminance used.

minExposure ​

cpp
double minExposure

Lower exposure bound used.

maxExposure ​

cpp
double maxExposure

Upper exposure bound used.

reason ​

cpp
std::string reason

Decision tag, e.g. "within_target", "lift_midtones", "highlight_clipping".

RaiSim — physics for robotics and AI.