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,29 @@
# Übung 6: Hough-Akkumulator
Betrachten Sie das folgende Binärbild:
![](data/houghImg.png)
Dabei sind die schwarzen Pixel als Kantenpixel zu verstehen.
Im folgenden sollen Sie mittels der Hough-Transformation Linien im Binärbild finden.
Bearbeiten Sie dazu folgende Aufgaben:
## a) Akkumulator
Nutzen Sie für die Hough-Transformation den folgenden Hough-Akkumulator mit der
Parametrisierung **y=mx+n**.
![](data/houghAcc.png)
Erstellen Sie die finale Akkumulator-Matrix H.
Die Lösung befindet sich in Datei [l_a.py](l_a.py).
## b) Parametrierung
Geben Sie die Parametrierung der Geraden an,
fuer welche die Akkumulator-Matrix H den größten Wert hat.
Die Lösung befindet sich in Datei [l_b.py](l_b.py).

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

10
5_Bildanalyse/ü6/l_a.py Normal file
View File

@@ -0,0 +1,10 @@
import numpy as np
acc = [
[1, 0, 1, 1, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 1, 2, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0, 1, 3]
]
acc = np.asarray(acc)
print(acc)

6
5_Bildanalyse/ü6/l_b.py Normal file
View File

@@ -0,0 +1,6 @@
import numpy as np
n = 4
m = -1
print("%s * x + %s" % (m, n))