From 76a854a5dd58395268e7286b197718c3a0a3a12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Douarre?= <clement.douarre@gmail.com> Date: Tue, 13 Apr 2021 14:23:00 +0200 Subject: [PATCH] small debug regarding generation of projections shape (size of HS cube was used even though in this version, the size can be different than the size of the FPA). --- helpers/cube2ctis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/cube2ctis.py b/helpers/cube2ctis.py index 13f6844..c512fd1 100644 --- a/helpers/cube2ctis.py +++ b/helpers/cube2ctis.py @@ -44,8 +44,8 @@ def create_CTIS_from_HSI(HSI, CTIS_geom_params, o0_attenuator, gain, wl_range, L # Get the cube H, W, L = HSI.shape - mid_H = int(H/2) - mid_W = int(W/2) + mid_H = int(L_CTIS/2) + mid_W = int(L_CTIS/2) # Create empty CTIS image CTIS = np.zeros((L_CTIS,L_CTIS)) -- GitLab