From patchwork Thu Dec 19 17:57:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 22414 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 2202CC3309 for ; Thu, 19 Dec 2024 17:57:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6D9CC6848C; Thu, 19 Dec 2024 18:57:54 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="WBBXzON8"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BB6076846F for ; Thu, 19 Dec 2024 18:57:49 +0100 (CET) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:783:85f9:c998:cb11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EA7F36D6; Thu, 19 Dec 2024 18:57:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1734631031; bh=EnI4zDdJeJn5HH+Gq2nY3+8buAk7TKwwaH8oVRx13tQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WBBXzON8gv4W/Tsd+awNLzHD1XanpRfJ2INxSnMPDb5cP0turdm3HHyujudtCMO+l +HRalci4BNbdDBW8pM8hzCSeT+mY9Lsp6mTLaFQvtGG/zciqr4RIZnTTkDI1u2oGsK CL1o9L/ueqNtJALlSJLVo4fzH8qrwAQecPqrwjeM= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug , Kieran Bingham , Paul Elder , Laurent Pinchart Subject: [PATCH v6 6/9] libtuning: Fix access to color member in ctt_awb.awb() Date: Thu, 19 Dec 2024 18:57:23 +0100 Message-ID: <20241219175729.293782-7-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241219175729.293782-1-stefan.klug@ideasonboard.com> References: <20241219175729.293782-1-stefan.klug@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Kieran Bingham Reviewed-by: Paul Elder Reviewed-by: Laurent Pinchart --- utils/tuning/libtuning/ctt_awb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/tuning/libtuning/ctt_awb.py b/utils/tuning/libtuning/ctt_awb.py index b996daba0213..240f37e644bb 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 """