• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Welcome to the world of Anagram Engineering
  • Who we are
  • Leistungen
    • Web Development
    • Embedded Systems
  • References
    • Customers
    • Webdesign & Webapps
    • Mobile Apps
    • Embedded Systems
    • Cloud Apps
  • News

Search

Anagram Engineering

Webdesign und Softwarelösungen aus Vorarlberg. Ihr Partner für innovative Lösungen rund ums Internet. Full Service Agentur.

Synthetic data



Next: Real data
Up: Line Detection
Previous: Line Detection


Synthetic data

Due to the high number of lines (
$ 8 * 4 = 32$) in Figure 4.6, only the vertical lines on the left side of the rectangles inside the image are investigated and shown in Table 4.2. As one can see in Figure 4.6, all lines have been found. The two horizontal lines at the bottom of object $ 1$ and $ 5$ have been rejected because they are perfectly horizontal and thus cannot be used for correspondence analysis. Normally the value, which classifies the lines into two groups to decide whether correspondence analysis make sense or not, is increased in order to get less outliers, as it is often with horizontal lines.

Figure:
The image on the left side shows a synthetic image containing eight rectangles with different attitudes. On the right side the result of the line detection is displayed. The detected lines are colored red. The starting and end points are colored blue and green, respectively. In Table 4.2 you can see the result of the line detection.
Image synthetic_data_line

In Table 4.2 you can see the properties (2D image coordinates of the start and end point, attitude) of the lines shown in Figure 4.6. The result, especially of the start and end points is very accurate. The maximum deviation is +/- 1px, but for example the line at the bottom of object 4 only covers about 85 % of the line. The error in the attitude increases if the contingent of the counter in x direction decreases. Although one has to keep in mind that it is an ideal situation.

In real world the contrast is lower and the edges are noisy. As a result often not the whole line is detected and thus the line detection extracts short lines. This is not a big problem when it happens in both images, the reconstructed line is just shorter. Obviously, it is a problem when it happens just in one image. The correspondence analysis compares different kinds of properties, amongst other things also the length and the similarity between the start and end point. If the difference between both lines is big enough, no correspondence can be established.

Table 4.2:
Real and detected coordinates, results are from synthetic data.

Description
$ x_{end}$ $ y_{end}$ $ x_{start}$ $ y_{start}$ $ alpha$
$ x_{end}'$
$ y_{end}'$
$ x_{start}'$

$ y_{start}'$
$ alpha'$

Rect1

30 90 30 10 0 29 89 31 9 0

Rect2
87 87 103 9 -0.205 88 90 102 9 -0.177

Rect3
141 63 198 9 -1.055 141 64 197 8 -1.000

Rect4
245 87 234 49 0.289 245 86 234 48 0.289

Rect5
30 190 30 110 0 31 190 29 109 -0.167

Rect6
106 192 91 115 0.195 106 192 91 115 0.195

Rect7
203 190 147 134 1.000 203 189 148 135 1.000

Rect8
248 160 255 121 -0.179 249 160 254 121 -0.128

Error ($ mu$)

– – – – manually 0.5 0.875 0.75 0.5 0.0376

To get an idea how the line detection works in a more natural environment, the next section uses real data to gain its results. The coordinates of the lines are manually extracted in this case.


Next: Real data
Up: Line Detection

Footer

Contact US

Stiegstrasse 24
6830 Rankweil

+43 650 925 62 64

About US

Anagram Engineering develops software for Web, Mobile, Tablet and embedded devices.

Learn More

© 2025 · Anagram Engineering

  • terms & conditions
  • impress
  • customers
  • References
  • who we are
Manage Cookie Consent
Wir benützen Cookies um unsere Website und unsere Services zu optimieren.
Funktional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistik
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
Einstellungen
{title} {title} {title}
  • Deutsch
  • English