From 8bea2d5a8adf1901f49e6449a731e3fd02272b3d Mon Sep 17 00:00:00 2001 From: Ben Benson Date: Thu, 6 Jun 2024 11:15:08 +0100 Subject: utils: raspberrypi: ctt: Added CAC support to the CTT Added the ability to tune the chromatic aberration correction within the ctt. There are options for cac_only or to tune as part of a larger tuning process. CTT will now recognise any files that begin with "cac" as being chromatic aberration tuning files. Signed-off-by: Ben Benson Signed-off-by: David Plowman Reviewed-by: Naushir Patuck Tested-by: Naushir Patuck Acked-by: Kieran Bingham Signed-off-by: Kieran Bingham --- utils/raspberrypi/ctt/ctt_image_load.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/raspberrypi/ctt/ctt_image_load.py') diff --git a/utils/raspberrypi/ctt/ctt_image_load.py b/utils/raspberrypi/ctt/ctt_image_load.py index d76ece73..ea5fa360 100644 --- a/utils/raspberrypi/ctt/ctt_image_load.py +++ b/utils/raspberrypi/ctt/ctt_image_load.py @@ -350,6 +350,8 @@ def dng_load_image(Cam, im_str): c2 = np.left_shift(raw_data[1::2, 0::2].astype(np.int64), shift) c3 = np.left_shift(raw_data[1::2, 1::2].astype(np.int64), shift) Img.channels = [c0, c1, c2, c3] + Img.rgb = raw_im.postprocess() + Img.sizes = raw_im.sizes except Exception: print("\nERROR: failed to load DNG file", im_str) -- cgit v1.2.1