summaryrefslogtreecommitdiff
path: root/utils/tuning
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2024-12-19 18:57:23 +0100
committerStefan Klug <stefan.klug@ideasonboard.com>2024-12-20 17:22:42 +0100
commit731cc02e797394fb44f85329e06697b9e065fbc4 (patch)
tree4ada4aa53aa5a0994ea5d6fd4c4ff6ffc384130a /utils/tuning
parent83e186a0945bc9fa37694b96e8ba361817d7e488 (diff)
libtuning: Fix access to color member in ctt_awb.awb()
The color temperature member of the image object was named "col" in the past. Now it is named "color" (which is still not very expressive). There are still a few unspotted accesses to the col member. Fix them to access the color member. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'utils/tuning')
-rw-r--r--utils/tuning/libtuning/ctt_awb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/tuning/libtuning/ctt_awb.py b/utils/tuning/libtuning/ctt_awb.py
index b996daba..240f37e6 100644
--- a/utils/tuning/libtuning/ctt_awb.py
+++ b/utils/tuning/libtuning/ctt_awb.py
@@ -77,7 +77,7 @@ def awb(imgs, cal_cr_list, cal_cb_list, plot):
r_g_hat = r_g/(1+r_g+b_g)
b_g_hat = b_g/(1+r_g+b_g)
logger.info(f' r_hat : {r_g_hat:.4f} b_hat : {b_g_hat:.4f}')
- rbs_hat.append((r_g_hat, b_g_hat, Img.col))
+ rbs_hat.append((r_g_hat, b_g_hat, Img.color))
rb_raw.append((r_g, b_g))
logger.info('Finished processing images')
@@ -305,7 +305,7 @@ def get_alsc_patches(Img, colour_cals, grey=True):
patches = Img.patches
if grey:
cen_coords = Img.cen_coords[3::4]
- col = Img.col
+ col = Img.color
r_patchs = patches[0][3::4] - Img.blacklevel_16
b_patchs = patches[3][3::4] - Img.blacklevel_16
"""