Initial commit with project files
This commit is contained in:
29
5_Bildanalyse/ü6/README.md
Normal file
29
5_Bildanalyse/ü6/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Übung 6: Hough-Akkumulator
|
||||
|
||||
Betrachten Sie das folgende Binärbild:
|
||||
|
||||

|
||||
|
||||
|
||||
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**.
|
||||
|
||||

|
||||
|
||||
|
||||
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).
|
||||
BIN
5_Bildanalyse/ü6/data/houghAcc.png
Normal file
BIN
5_Bildanalyse/ü6/data/houghAcc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
BIN
5_Bildanalyse/ü6/data/houghImg.png
Normal file
BIN
5_Bildanalyse/ü6/data/houghImg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
10
5_Bildanalyse/ü6/l_a.py
Normal file
10
5_Bildanalyse/ü6/l_a.py
Normal 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
6
5_Bildanalyse/ü6/l_b.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import numpy as np
|
||||
|
||||
n = 4
|
||||
m = -1
|
||||
|
||||
print("%s * x + %s" % (m, n))
|
||||
Reference in New Issue
Block a user