/workspaces/astro/sol3-sdk/cpp/sol3/isp/white_balance.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/isp/white_balance.h Source File
Space-ng SDK
white_balance.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 
3 #pragma once
4 
5 #include "sol3/isp/msg/debayer.h"
6 
7 #include <opencv2/core.hpp>
8 
9 #include <optional>
10 
11 namespace sol3::isp {
12 
15  float max_gain = 8.0f;
19  float min_channel_mean = 1.0f;
20 };
21 
55 std::optional<msg::WhiteBalanceGains> estimateWhiteBalance(
56  cv::Mat const& bgr_image,
57  cv::Rect const& roi,
58  AutoWhiteBalanceConfig const& config = {});
59 
60 } // namespace sol3::isp
Definition: white_balance.h:11
std::optional< msg::WhiteBalanceGains > estimateWhiteBalance(cv::Mat const &bgr_image, cv::Rect const &roi, AutoWhiteBalanceConfig const &config={})
Definition: white_balance.h:13
float min_channel_mean
Definition: white_balance.h:19
float max_gain
Per-channel gain ceiling. The estimator clamps R and B to [0, max_gain].
Definition: white_balance.h:15