Skip to content

raisin::RayraiWindow::ExposureRecommendation ​

struct · #include <rayrai/RayraiWindow.hpp>

Result of recommendExposure(); the target/limit fields echo the inputs.

Public attributes ​

valid ​

cpp
bool valid

False when the inputs were invalid (reason is 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 70 % of the target median.

overexposed ​

cpp
bool overexposed

Highlights exceed the p95 target or midtones exceed 135 % of the target median.

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 luminance used.

targetP95Luminance ​

cpp
double targetP95Luminance

Target 95th percentile luminance used.

minExposure ​

cpp
double minExposure

Lower exposure bound used.

maxExposure ​

cpp
double maxExposure

Upper exposure bound used.

reason ​

cpp
std::string reason

Machine-readable reason, e.g. highlight_clipping, lift_midtones, within_target.

RaiSim — physics for robotics and AI.