From 24e00be9f3ded4dc68f7c3b1ddc6166e987881fd Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Tue, 17 Dec 2024 15:59:35 +0100 Subject: utils: tuning: libtuning: Fix tuning for non RGGB RAWs Tuning fails for raw images that don't have the channels ordered in RGGB. In 19dc8c28f63c ("utils: tuning: libtuning: Implement the core of libtuning") the channels of the image were reordered to RGGB unconditionally in _read_image_dng(). That change was not applied to the ctt_awb code, so that the channels were reordered twice. Fix by removing the double ordering. Signed-off-by: Stefan Klug Tested-by: Isaac Scott Reviewed-by: Isaac Scott Reviewed-by: Laurent Pinchart --- utils/tuning/libtuning/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/tuning/libtuning/image.py') diff --git a/utils/tuning/libtuning/image.py b/utils/tuning/libtuning/image.py index c8911a0f..ecd334bd 100644 --- a/utils/tuning/libtuning/image.py +++ b/utils/tuning/libtuning/image.py @@ -135,6 +135,6 @@ class Image: all_patches.append(ch_patches) - self.patches = all_patches + self.patches = np.array(all_patches) return not saturated -- cgit v1.2.1