Autor Beitrag
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Do 17.09.09 14:50 
Hallo,
ich stehe grade voll auf dem Schlauch:
Ich analysiere Bilder einer Webcam und filtere zuerst die entsprechenden Pixel raus.
jetzt habe ich also das gewünschte objekt gefunden(ungefähr kreisförmig), aber wie bestimme ich jetzt den Mittelpunkt?
mfg Boldar
Nersgatt
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1581
Erhaltene Danke: 279


Delphi 10 Seattle Prof.
BeitragVerfasst: Do 17.09.09 15:12 
Wenn man davon ausgeht, dass es wirklich ein Kreis ist, könnte man den Mittelpunk konstruieren.

_________________
Gruß, Jens
Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du. (Mahatma Gandhi)
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Do 17.09.09 15:19 
Naja, aber genau das ist es halt nich.
Ich habe mal ein Beispiel angehängt.
So sieht das nach der Bearbeitung aus:
screenshot_kreis

Moderiert von user profile iconNarses: BMP -> PNG
Einloggen, um Attachments anzusehen!
Nersgatt
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1581
Erhaltene Danke: 279


Delphi 10 Seattle Prof.
BeitragVerfasst: Do 17.09.09 15:32 
Dann gibt es verschiedene Definitionen von Mittelpunkt. Als Einstieg: de.wikipedia.org/wik...elpunkt_Deutschlands

_________________
Gruß, Jens
Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du. (Mahatma Gandhi)
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 17.09.09 15:39 
Da gibts verschiedene Möglichkeiten.
Als ich die Werte von Münzen auf einem ähnlich aussehenden Kamerabild bestimmen musste hat sich der Schwerpunkt als am effektivsten erwiesen.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Do 17.09.09 15:54 
Gibt es denn schon einen effizienten algorithmus zur berechnung des Flächenschwerpunktes, auf Grundlage des oben gezeigten Bildes?
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 17.09.09 16:12 
Der Algorithmus sieht so aus, dass man quasi den Durchschnitt aller X-Werte und den Durchschnitt aller Y-Werte bildet.

Vorarbeit dort war, dass die Pixel einer Münze schon in einer Liste lagen.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.