Initial commit with project files

This commit is contained in:
2025-06-27 14:34:11 +02:00
commit 7ea3207e63
310 changed files with 9331 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import cv2
import numpy as np
from . import Algorithm
class ImageToHue(Algorithm):
""" Normalizes a BGR image with color information"""
def process(self, img):
channel_sum = np.sum(img.astype(np.float32), axis=2, keepdims=True)
img_normalized = img.astype(np.float32) * 255 / channel_sum
img_normalized = img_normalized.astype(np.uint8())
return img_normalized