libcamera v0.4.0+53-29156679
Supporting cameras in Linux since 2019
colours.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2/*
3 * Copyright (C) 2024, Ideas on Board Oy
4 *
5 * libipa miscellaneous colour helpers
6 */
7
8#pragma once
9
10#include <stdint.h>
11
12#include "vector.h"
13
14namespace libcamera {
15
16namespace ipa {
17
18double rec601LuminanceFromRGB(const RGB<double> &rgb);
19uint32_t estimateCCT(const RGB<double> &rgb);
20
21} /* namespace ipa */
22
23} /* namespace libcamera */
double rec601LuminanceFromRGB(const RGB< double > &rgb)
Estimate luminance from RGB values following ITU-R BT.601.
Definition: colours.cpp:32
uint32_t estimateCCT(const RGB< double > &rgb)
Estimate correlated colour temperature from RGB color space input.
Definition: colours.cpp:59
Top-level libcamera namespace.
Definition: backtrace.h:17
Vector class.