Add datasets/raise/merge_single_color_channel_images_according_to_bayer_filter.py

This commit is contained in:
Benjamin Loison 2024-04-18 00:41:43 +02:00
parent faaf3eb263
commit fddb89c64a
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -0,0 +1,11 @@
from PIL import Image
from utils import Color
color = Color.BLUE
image = Image.open(f'mean_flat-field_nef_wavelet_{color}.png')
#print(image.size)
newImage = Image.new('RGB', [dimension * 2 for dimension in image.size])
#print(newImage.size)
for color in Color: