libcamera v0.7.2+1-aebe4861-nvm
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
libcamera::ipa::AgcMeanLuminance::Traits Class Referenceabstract

A collection of callbacks. More...

Public Member Functions

virtual double estimateLuminance (double gain) const =0
 Estimate the luminance of an image, adjusted by a given gain.
 

Detailed Description

A collection of callbacks.

This type contains virtual methods that provide the necessary pieces of information for the algorithm, and are to be implemented by the user.

Member Function Documentation

◆ estimateLuminance()

libcamera::ipa::AgcMeanLuminance::Traits::estimateLuminance ( double  gain) const
pure virtual

Estimate the luminance of an image, adjusted by a given gain.

Parameters
[in]gainThe gain with which to adjust the luminance estimate

This function estimates the average relative luminance of the frame that would be output by the sensor if an additional gain was applied. It is a pure virtual function because estimation of luminance is a hardware-specific operation, which depends wholly on the format of the stats that are delivered to libcamera from the ISP. Derived classes must override this function with one that calculates the normalised mean luminance value across the entire image.

Returns
The normalised relative luminance of the image

The documentation for this class was generated from the following files: