Skip to main content

Module colorimetry

Module colorimetry 

Source
Expand description

Colorimetry metadata for image/video tensors.

Four orthogonal axes mirroring V4L2’s struct v4l2_format colorimetry fields and libcamera::ColorSpace, named to match the EdgeFirst CameraFrame.msg schema so values round-trip through the ROS layer. Each enum is #[non_exhaustive]; unknown/_DEFAULT values map to None.

Structs§

Colorimetry
Full 4-axis colorimetry. Each axis is Option; None means “undefined” and is never auto-filled — consumers (e.g. convert()) resolve missing axes at use-time without mutating the value.
MatrixWeights
YCbCr matrix luma weights (kr, kb); the green weight is kg = 1 - kr - kb.
RangeScaling
Quantization swings (out of 255) for a YCbCr range: the luma black offset and the luma/chroma excursions. Full range is 0 / 255 / 255; limited (studio) range is 16 / 219 / 224.

Enums§

ColorEncoding
YCbCr encoding matrix (color_encoding in the EdgeFirst schema).
ColorRange
Quantization range (color_range in the EdgeFirst schema).
ColorSpace
Color primaries (color_space in the EdgeFirst schema).
ColorTransfer
Transfer function (color_transfer in the EdgeFirst schema).