ipa: rkisp1: algorithms: awb: Fix AWB means vector order in RGB mode
Fix the order of the rgbMeans vector that got broken accidentally
during refactoring. As there is currently no way to enable rgb mode at
runtime it went unnoticed.
Fixes: 29892f1c56
("ipa: libipa: colour: Use the RGB class to model RGB values")
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
25dcdf2998
commit
d4545edb38
1 changed files with 1 additions and 1 deletions
|
@ -342,8 +342,8 @@ RGB<double> Awb::calculateRgbMeans(const IPAFrameContext &frameContext, const rk
|
||||||
|
|
||||||
if (rgbMode_) {
|
if (rgbMode_) {
|
||||||
rgbMeans = {{
|
rgbMeans = {{
|
||||||
static_cast<double>(awb->awb_mean[0].mean_y_or_g),
|
|
||||||
static_cast<double>(awb->awb_mean[0].mean_cr_or_r),
|
static_cast<double>(awb->awb_mean[0].mean_cr_or_r),
|
||||||
|
static_cast<double>(awb->awb_mean[0].mean_y_or_g),
|
||||||
static_cast<double>(awb->awb_mean[0].mean_cb_or_b)
|
static_cast<double>(awb->awb_mean[0].mean_cb_or_b)
|
||||||
}};
|
}};
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue