From 306538769da41e6f2f93f732bd551bc5c2b25a60 Mon Sep 17 00:00:00 2001 From: Monica J Emerson <monj@dtu.dk> Date: Tue, 19 Jan 2021 11:31:21 +0100 Subject: [PATCH] Added control samples as a condition for the lung. Diseases --> Conditions --- code/image_preprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/image_preprocessing.py b/code/image_preprocessing.py index 5dadfec..266b431 100755 --- a/code/image_preprocessing.py +++ b/code/image_preprocessing.py @@ -115,7 +115,7 @@ for ind_c,std_list_condition in enumerate(std_list): plt.show() #Average intesity-spread across al image channels -mean_std = sum(std_list)/len(std_list) +mean_std = sum(std_list_flat)/len(std_list_flat) print('The average spread of an image channel is ' + str(round(mean_std))) #%% Correct intensities -- GitLab