Initial commit with project files
This commit is contained in:
15
2_Bildbearbeitung/ü10/a.py
Normal file
15
2_Bildbearbeitung/ü10/a.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
img = cv2.imread("../../data/car.png", cv2.IMREAD_GRAYSCALE)
|
||||
img = cv2.resize(img, (500, 500))
|
||||
# Do some preprocessing
|
||||
img = img.astype(float)
|
||||
img = 50 + (105 * img / 255)
|
||||
cv2.imshow("Original", img.astype(np.uint8))
|
||||
|
||||
# Implement AHE
|
||||
|
||||
|
||||
cv2.waitKey(0)
|
||||
|
||||
Reference in New Issue
Block a user