From patchwork Fri Jul 7 03:16:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Benson X-Patchwork-Id: 18815 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 04A05BEFBE for ; Thu, 13 Jul 2023 10:35:21 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 30773628C2; Thu, 13 Jul 2023 12:35:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1689244520; bh=7DmhXprZasR/nSzVcr5k3bb2oqAj1CxADvd5RUcE5Eg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=zhKW12M3Uq80V6IPV0LRgRODxxhV5RLxlrlugj/3p8mOhtMjpXvE9iaRNZ76zTLiG pJDidqBtCRQWuxfGOCm9cd6CzD23W9oNq85bYe8Vo4GgOExUGhrJQt/zC99EYm9S2a N2VrJrOJQthBSYx/1iGrAERnPk+Kufv1Uu/rV9B21iPDz1G8DXcEAXqxPHZRAXE9z3 D2tPUtlqJ0TUm8cYHo8G7yhq3kkW1IniekmIicbu8WTHImSi/6qbSBVqFQPnjiEpWk iM58KisK1QMfZJZ51b6TcSUzO31bgv8E0XmfqXkdqYv6l7nCLsptP5EYBSozhkR8gB onE2yWnatmFsA== Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2AE0B61E37 for ; Thu, 13 Jul 2023 12:35:18 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="KkOacnSU"; dkim-atps=neutral Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3144bf65ce9so672722f8f.3 for ; Thu, 13 Jul 2023 03:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1689244517; x=1691836517; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bzUk2fBc1XHHCYqy79vzy4vinrkqqMlIPQHoA5P/7FQ=; b=KkOacnSU9uiigIPSXSqFyrSxOUhFMu91a4fT1mCwi4B97e/PjBD0mOcnbqvsFiGG4c p6V6PdfEiKZ1HOw4uam4d4GMnOEEQj3QfYyZftr4FMC/wau4M+JCZeDr2cckiKG0NkEc CTqmBRcAHxd5sxr48e9PWUy0ttSQGToxYfZR15ox+wexda5yPMlpzhBulFC5r9WuJTv/ 8FP+G03xf8CxcnNfSLdKoVNUczSvTbqUjUqeofdViKR6xwh/6mHLmP8352OvaBYIr/jK FeUNThYdvKGHOrzSLhQtsNqcVU3sceINP70XinW3TGN7nEi8D8Q+kclVdSY5LAlm3QeS kYUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689244517; x=1691836517; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bzUk2fBc1XHHCYqy79vzy4vinrkqqMlIPQHoA5P/7FQ=; b=KPh3hgeWqO98DvgcB1QORWKkGFocIOyz26kX/IX6v0hzSeN2vKKZMw+DiHJ0eAwNab TsYJOH6vUT5QyiKUWm+T49OFmC1J8Hf412t63iohcqZx6Fc6uBTZQHg8oY4CM16Ytzmt /f9XpFpko8qenWqxGDzdOTzeWjzFJGe/dnJFsWbdQ8ogD01hQ7KNQLavPMCHNmSrwujM +x3pvsF2yeFPOcJNWfZJfXYwN4txpR2hFX4ViN5wPfbEv2CbF8pdRkmGaiAatQrhaZ2y dI9EPvIP/i9LH94HWWOyC1DtGRnFZaHohRtwj0OW7q9ftM32LBYXao40kWQAYCnLqLX4 XAxg== X-Gm-Message-State: ABy/qLY7eDmolFrd2BVOaQk+jlOUmWU+HizIwXuwjDSUo+e1DZunF6oY vsdvmZm3XqVOUTHpWH4QBUXXFGuJSD/I2lVXLG/U7onJ X-Google-Smtp-Source: APBJJlFTr/hwMV+P5MtCmEeGx/pPtKNIhd4wZQJBlkXL3PV9Af/zxg9zwd6CU7408PEQKwlIzSNBHA== X-Received: by 2002:adf:d4c7:0:b0:314:268b:21f1 with SMTP id w7-20020adfd4c7000000b00314268b21f1mr1059437wrk.18.1689244517490; Thu, 13 Jul 2023 03:35:17 -0700 (PDT) Received: from localhost.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id r8-20020a056000014800b0030fa3567541sm7551143wrx.48.2023.07.13.03.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 03:35:17 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 7 Jul 2023 04:16:59 +0100 Message-Id: <20230707031702.603261-1-ben.benson@raspberrypi.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] Raspberry Pi Color Matrix and Tuning Tool Improvements 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: Ben Benson via libcamera-devel From: Ben Benson Reply-To: Ben Benson Cc: Ben Benson Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The previous 3 commits have been updated since review. 1. Bug fixes, changed spellings and added docstring to ctt_visualise. 2. Commit message changed - s/by -> s/by: 3. Moved comment, and removed line of redundant code Reviewed-by: David Plowman Reviewed-by: Naushir Patuck Ben Benson (3): utils: raspberrypi: ctt: Improved color matrix fitting ipa: rpi: vc4: data: Updated color matrices for RPi Cameras utils: raspberrypi: ctt: Code tidying src/ipa/rpi/vc4/data/imx219.json | 66 +++---- src/ipa/rpi/vc4/data/imx296.json | 160 +++------------ src/ipa/rpi/vc4/data/imx477.json | 93 +++------ src/ipa/rpi/vc4/data/imx708.json | 139 ++----------- src/ipa/rpi/vc4/data/imx708_wide.json | 49 +++-- src/ipa/rpi/vc4/data/ov5647.json | 66 +++---- utils/raspberrypi/ctt/colors.py | 30 +++ utils/raspberrypi/ctt/ctt_ccm.py | 258 +++++++++++++++++++++---- utils/raspberrypi/ctt/ctt_visualise.py | 43 +++++ 9 files changed, 440 insertions(+), 464 deletions(-) create mode 100644 utils/raspberrypi/ctt/colors.py create mode 100644 utils/raspberrypi/ctt/ctt_visualise.py