summaryrefslogtreecommitdiff
path: root/utils/tuning/libtuning/ctt_ccm.py
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2024-06-11 08:36:43 +0200
committerStefan Klug <stefan.klug@ideasonboard.com>2024-07-05 17:47:42 +0200
commitb1f3b3f08d365dc087508b573dd095808267e640 (patch)
tree8bcde4490b0bfddd9f874226cde8a1c82b9fbd56 /utils/tuning/libtuning/ctt_ccm.py
parent388fe3bcf9ab5e6a5888dd573f590a84c2ac3e93 (diff)
libtuning: Fix imports
Fix imports to match new structure in the files copied from Raspberry Pi. Add missing imports in macbeth.py. Add missing dependencies to requirements.txt. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Diffstat (limited to 'utils/tuning/libtuning/ctt_ccm.py')
-rw-r--r--utils/tuning/libtuning/ctt_ccm.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/utils/tuning/libtuning/ctt_ccm.py b/utils/tuning/libtuning/ctt_ccm.py
index 59753e33..f37adaf4 100644
--- a/utils/tuning/libtuning/ctt_ccm.py
+++ b/utils/tuning/libtuning/ctt_ccm.py
@@ -4,12 +4,14 @@
#
# camera tuning tool for CCM (colour correction matrix)
-from ctt_image_load import *
-from ctt_awb import get_alsc_patches
-import colors
-from scipy.optimize import minimize
-from ctt_visualise import visualise_macbeth_chart
import numpy as np
+from scipy.optimize import minimize
+
+from . import ctt_colors as colors
+from .image import Image
+from .ctt_awb import get_alsc_patches
+from .utils import visualise_macbeth_chart
+
"""
takes 8-bit macbeth chart values, degammas and returns 16 bit
"""