Skip to content

raisin::RgbaCalibrationPatchResult ​

struct · #include <rayrai/Capture.hpp>

Measurement of one RgbaCalibrationPatch; all colors are display-space RGB in [0, 1].

Public attributes ​

name ​

cpp
std::string name

Patch label.

valid ​

cpp
bool valid

False when the patch rectangle is empty after clipping.

sampleCount ​

cpp
size_t sampleCount

Pixels averaged.

measuredRgb ​

cpp
glm::vec3 measuredRgb

Mean RGB inside the patch.

targetRgb ​

cpp
glm::vec3 targetRgb

Target RGB, clamped to [0, 1].

rgbError ​

cpp
double rgbError

Euclidean RGB distance between measured and target.

maxChannelError ​

cpp
double maxChannelError

Largest absolute per-channel difference.

luminanceError ​

cpp
double luminanceError

Absolute Rec. 709 luma difference.

saturationError ​

cpp
double saturationError

Absolute (max - min) / max saturation difference.

RaiSim — physics for robotics and AI.