Loading...
Searching...
No Matches
colours.h
Go to the documentation of this file.
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2024, Ideas on Board Oy
*
* libipa miscellaneous colour helpers
*/
#pragma once
#include <stdint.h>
#include "libcamera/internal/vector.h"
namespace libcamera {
namespace ipa {
double rec601LuminanceFromRGB(const RGB<double> &rgb);
uint32_t estimateCCT(const RGB<double> &rgb);
} /* namespace ipa */
} /* namespace libcamera */
libcamera::ipa
The IPA (Image Processing Algorithm) namespace.
Definition af.cpp:58
libcamera::ipa::rec601LuminanceFromRGB
double rec601LuminanceFromRGB(const RGB< double > &rgb)
Estimate luminance from RGB values following ITU-R BT.601.
Definition colours.cpp:32
libcamera::ipa::estimateCCT
uint32_t estimateCCT(const RGB< double > &rgb)
Estimate correlated colour temperature from RGB color space input.
Definition colours.cpp:59
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::RGB
Vector< T, 3 > RGB
A Vector of 3 elements representing an RGB pixel value.
Definition vector.h:297
vector.h
Vector class.