From patchwork Thu Nov 24 11:38:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17883 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 5A3B4BE08B for ; Thu, 24 Nov 2022 11:39:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EB0BB63325; Thu, 24 Nov 2022 12:39:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669289949; bh=SCNNWOpIHHg4gCia+AZuZgl02e8faUO3Gsqf2wem4j0=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=VzYvzJveK+WIy0sttcuosZsQedOrFeAoc0RZF0MRHkSYB1l6IuD5FKGBwFyskKCgI jEVF+SvGDKS6QgogZleoc6el0c74Uvx3o+5lPpnfBOiDrX7qkXu4YIUD6Ug9TCURHw ZadlPelDC7RBPq0/bNlB4CckHkTLjcZfu4jsIcGAlbBe+gzKeM+/QpAmYxdgF/0djK 5zFK41BDLN2Aj7zZ0vHFJy/l2cNLRbZZ1MnMppyz1sqNbnCotoXnt9ku6f6RS6QtjI qtUqrgqByXrGHkwQIHhX2+keSeZk7Ovrp4MnRqEUOKGPqyhaEi/joNrGCRwMo97Xvn nA3d6cjiAagzQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E53A263322 for ; Thu, 24 Nov 2022 12:39:06 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ZfdLChlI"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B3D777FA; Thu, 24 Nov 2022 12:39:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669289946; bh=SCNNWOpIHHg4gCia+AZuZgl02e8faUO3Gsqf2wem4j0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZfdLChlI8I048ov59cB1nkR80+pLaPmwG55mTc87E16VphHsJ6c59BhIXPmE2dA8z Ih3VaEU5zIzqNsggxiCzRCo73UFB7juhouB/AUcKXPAjAy6JT5pXRQYJ46h9Q2Vp9d 8GfCp6jLTZJSH/F6hmRSsDrWVOt7qqhbybml6bL0= To: libcamera-devel@lists.libcamera.org Date: Thu, 24 Nov 2022 20:38:47 +0900 Message-Id: <20221124113849.2193579-5-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221124113849.2193579-1-paul.elder@ideasonboard.com> References: <20221124113849.2193579-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 4/6] utils: libtuning: lsc: rkisp1: Add per-image debug plotting 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: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add debug plotting the LSC table for each image to the RkISP1 LSC module. Signed-off-by: Paul Elder Reviewed-by: Daniel Scally --- utils/tuning/libtuning/modules/lsc/rkisp1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/tuning/libtuning/modules/lsc/rkisp1.py b/utils/tuning/libtuning/modules/lsc/rkisp1.py index 5701ae0a..c3fdcc4f 100644 --- a/utils/tuning/libtuning/modules/lsc/rkisp1.py +++ b/utils/tuning/libtuning/modules/lsc/rkisp1.py @@ -41,6 +41,9 @@ class LSCRkISP1(LSC): cr, _ = self._lsc_single_channel(image.channels[lt.Color.R], image, gr) cb, _ = self._lsc_single_channel(image.channels[lt.Color.B], image, gb) + if self.debug: + self._plot_single_lsc(image, cr, cb, cgr, cgb) + return image.color, cr.flatten(), cb.flatten(), cgr.flatten(), cgb.flatten() # @return List of dictionaries of color temperature, red table, red's green