summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2022-10-19 19:52:13 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2022-10-20 11:40:29 +0900
commitc8e6b114f023595595d52098bc01bcfca279295d (patch)
tree2ae1dd2f07d2af7119cb453abf8c3e96ec07b463 /utils
parentab2a10f00757a3defbf027591a696d06a45c835c (diff)
utils: raspberrypi: ctt: Fix alsc green averaging
The alsc component of ctt meant to average the two green channels into one, but used incorrect indexing resulting in only the first green channel being used. Fix this. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/raspberrypi/ctt/ctt_alsc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/raspberrypi/ctt/ctt_alsc.py b/utils/raspberrypi/ctt/ctt_alsc.py
index c0ba7b63..e51d6931 100644
--- a/utils/raspberrypi/ctt/ctt_alsc.py
+++ b/utils/raspberrypi/ctt/ctt_alsc.py
@@ -132,7 +132,7 @@ def alsc(Cam, Img, do_alsc_colour, plot=False):
"""
average the green channels into one
"""
- av_ch_g = np.mean((channels[1:2]), axis=0)
+ av_ch_g = np.mean((channels[1:3]), axis=0)
if do_alsc_colour:
"""
obtain 16x12 grid of intensities for each channel and subtract black level