From 9641641b6157af915d8d53affff604a08e85a6c5 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Fri, 26 Apr 2024 04:13:08 +0200 Subject: [PATCH] Remove commented code from `analyze_bayer_filter_mean_denoiser.py` --- datasets/raise/analyze_bayer_filter_mean_denoiser.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/datasets/raise/analyze_bayer_filter_mean_denoiser.py b/datasets/raise/analyze_bayer_filter_mean_denoiser.py index fba2548..2e92417 100644 --- a/datasets/raise/analyze_bayer_filter_mean_denoiser.py +++ b/datasets/raise/analyze_bayer_filter_mean_denoiser.py @@ -5,13 +5,6 @@ from tqdm import tqdm import rawpy import matplotlib.pyplot as plt -''' -for color in Color: - #if color == 'green_bottom': - # continue - print(color) -''' - os.chdir('flat-field/NEF') firstBayerFilterOccurrenceImages = [] @@ -36,8 +29,6 @@ COLOR_BASE = 256 def getColor(colorIndex): return HEX_COLOR % tuple((255 if colorIndex == colorIndexTmp else 0) for colorIndexTmp in range(NUMBER_OF_COLORS)) -#X, Y = np.histogram(firstBayerFilterOccurrenceImages[:,0,0]) -#plt.plot(X, Y) for colorIndex, (colorY, colorX) in enumerate([(0, 0), (0, 1), (1, 1)]): X = firstBayerFilterOccurrenceImages[:, colorY, colorX] - np.mean(firstBayerFilterOccurrenceImages, axis = 0)[colorY, colorX] plt.hist(X, bins = len(set(X)), color = getColor(colorIndex), alpha = 0.3)