This commit is contained in:
2022-10-27 10:31:42 -07:00
parent b7bb145089
commit d10665fd67
10 changed files with 377 additions and 52 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 MiB

View File

@@ -3,7 +3,13 @@
import cv2 as cv
import numpy as np
file = '01-0001-cropped.png'
# edge-detection kernel amplification
AMPLIFIER=9
MIN_INTENSITY=100
# file = '01-0001-cropped.png'
file = 'streaktest.png'
file_name = file.split(".")[0]
file_ext = file.split(".")[1]
@@ -13,7 +19,7 @@ img = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
kernel = np.array([
[-1, -1, -1],
[-1, 8, -1],
[-1, AMPLIFIER, -1],
[-1, -1, -1],
])
img = cv.filter2D(src=img, ddepth=-1, kernel=kernel)

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB