libcamera  v0.5.0+49-e5442c31
Supporting cameras in Linux since 2019
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
13 
14 namespace libcamera {
15 
16 namespace ipa {
17 
18 double rec601LuminanceFromRGB(const RGB<double> &rgb);
19 uint32_t estimateCCT(const RGB<double> &rgb);
20 
21 } /* namespace ipa */
22 
23 } /* namespace libcamera */
Top-level libcamera namespace.
Definition: backtrace.h:17
uint32_t estimateCCT(const RGB< double > &rgb)
Estimate correlated colour temperature from RGB color space input.
Definition: colours.cpp:59
Vector class.
double rec601LuminanceFromRGB(const RGB< double > &rgb)
Estimate luminance from RGB values following ITU-R BT.601.
Definition: colours.cpp:32