libcamera v0.5.1
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
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
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 */
The IPA (Image Processing Algorithm) namespace.
Definition af.cpp:58
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< T, 3 > RGB
A Vector of 3 elements representing an RGB pixel value.
Definition vector.h:297
Vector class.