{"id":1964,"date":"2014-02-05T17:32:45","date_gmt":"2014-02-05T17:32:45","guid":{"rendered":"https:\/\/www.anagram.at\/en\/diplomarbeit\/synthetic-data\/"},"modified":"2014-02-05T17:32:45","modified_gmt":"2014-02-05T17:32:45","slug":"synthetic-data","status":"publish","type":"page","link":"https:\/\/www.anagram.at\/en\/diplomarbeit\/synthetic-data\/","title":{"rendered":"Synthetic data"},"content":{"rendered":"<p><body><br \/>\n<!--Navigation Panel--><br \/>\n<b> Next:<\/b> <a name=\"tex2html648\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/real-data\/\">Real data<\/a><br \/>\n<b> Up:<\/b> <a name=\"tex2html644\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/line-detection\/\">Line Detection<\/a><br \/>\n<b> Previous:<\/b> <a name=\"tex2html638\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/line-detection\/\">Line Detection<\/a><br \/>\n<!--End of Navigation Panel--><\/p>\n<h2><a name=\"SECTION00521000000000000000\"><br \/>\nSynthetic data<\/a><br \/>\n<\/h2>\n<p>\nDue to the high number of lines (<!-- MATH\n $8 * 4 = 32$\n --><br \/>\n<img loading=\"lazy\" width=\"85\" height=\"19\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img280.png\" alt=\"$ 8 * 4 = 32$\"\/>) in Figure <a href=\"#synthetic_data_line\">4.6<\/a>, only the vertical lines on the left side of the rectangles inside the image are investigated and shown in Table <a href=\"#data_syn1\">4.2<\/a>. As one can see in Figure <a href=\"#synthetic_data_line\">4.6<\/a>, all lines have been found. The two horizontal lines at the bottom of object <img loading=\"lazy\" width=\"14\" height=\"19\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img45.png\" alt=\"$ 1$\"\/> and <img loading=\"lazy\" width=\"14\" height=\"19\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img281.png\" alt=\"$ 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.<\/p>\n<div align=\"CENTER\"><a name=\"synthetic_data_line\"\/><a name=\"2598\"\/><\/p>\n<table>\n<caption align=\"BOTTOM\"><strong>Figure:<\/strong><br \/>\nThe 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 <a href=\"#data_syn1\">4.2<\/a> you can see the result of the line detection.<\/caption>\n<tr>\n<td>\n<div align=\"CENTER\">\n <img loading=\"lazy\" width=\"900\" height=\"445\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/synthetic_data_line.jpg\" alt=\"Image synthetic_data_line\"\/><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>In Table <a href=\"#data_syn1\">4.2<\/a> you can see the properties (2D image coordinates of the start and end point, attitude) of the lines shown in Figure <a href=\"#synthetic_data_line\">4.6<\/a>. 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. <\/p>\n<p>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. <\/p>\n<p\/>\n<div align=\"CENTER\"><a name=\"2459\"\/><\/p>\n<table>\n<caption><strong>Table 4.2:<\/strong><br \/>\nReal and detected coordinates, results are from synthetic data.<\/caption>\n<tr>\n<td>\n<div align=\"CENTER\">\n<table cellpadding=\"3\" border=\"1\" align=\"CENTER\">\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nDescription <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <img loading=\"lazy\" width=\"37\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img282.png\" alt=\"$ x_{end}$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <img loading=\"lazy\" width=\"36\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img283.png\" alt=\"$ y_{end}$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <img loading=\"lazy\" width=\"46\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img284.png\" alt=\"$ x_{start}$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <img loading=\"lazy\" width=\"44\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img285.png\" alt=\"$ y_{start}$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <img loading=\"lazy\" width=\"17\" height=\"19\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img47.png\" alt=\"$ alpha$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\n<img loading=\"lazy\" width=\"37\" height=\"38\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img286.png\" alt=\"$ x_{end}'$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <img loading=\"lazy\" width=\"36\" height=\"38\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img287.png\" alt=\"$ y_{end}'$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <!-- MATH\n $x_{start}'$\n --><br \/>\n<img loading=\"lazy\" width=\"46\" height=\"38\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img288.png\" alt=\"$ x_{start}'$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <!-- MATH\n $y_{start}'$\n --><br \/>\n<img loading=\"lazy\" width=\"44\" height=\"38\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img289.png\" alt=\"$ y_{start}'$\"\/><\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> <img loading=\"lazy\" width=\"21\" height=\"17\" align=\"BOTTOM\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img224.png\" alt=\"$ alpha'$\"\/><\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"> <\/p>\n<p>Rect1 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 30  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 90  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 30  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 10  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 0      <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 29 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 89 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 31  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 9   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 0  \t\t <\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nRect2 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 87  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 87  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 103 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 9   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> -0.205 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 88  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 90  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 102  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 9   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> -0.177 <\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nRect3 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 141 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 63  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 198 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 9   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> -1.055  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 141 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 64  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 197 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 8   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> -1.000 \t<\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nRect4 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 245 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 87  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 234 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 49  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 0.289  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 245 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 86  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 234 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 48  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 0.289 \t<\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nRect5 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">  30 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 190 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 30  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 110  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 0      <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 31  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 190 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 29  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 109 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> -0.167 \t\t<\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nRect6 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 106 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 192 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 91  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 115 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 0.195  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 106 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 192 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 91  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 115 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 0.195 \t<\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nRect7 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 203 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 190 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 147 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 134 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 1.000  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 203 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 189 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 148  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 135 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 1.000 \t<\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"><br \/>\nRect8 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 248 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 160 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 255 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 121 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> -0.179  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 249 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 160 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 254 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> 121 <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> -0.128 \t<\/font><\/td>\n<td\/>\n<\/tr>\n<tr>\n<td align=\"CENTER\"><font size=\"-2\"> <\/p>\n<p>Error (<img loading=\"lazy\" width=\"16\" height=\"33\" align=\"MIDDLE\" border=\"0\" src=\"https:\/\/www.anagram.at\/app\/uploads\/2014\/02\/img270.png\" alt=\"$ mu$\"\/>)<\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> \t&#8211;\t<\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> &#8211;\t  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">  &#8211;  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\"> &#8211;   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">manually <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">  0.5  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">  0.875  <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">  0.75   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">  0.5   <\/font><\/td>\n<td align=\"CENTER\"><font size=\"-2\">  0.0376  <\/font><\/td>\n<td\/>\n<\/tr>\n<\/table>\n<p><font size=\"-2\"><\/p>\n<p><a name=\"data_syn1\"\/><\/font><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p\/>\n<p>\nTo 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.  <\/p>\n<\/p>\n<hr\/>\n<p><!--Navigation Panel--><b> Next:<\/b> <a name=\"tex2html648\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/real-data\/\">Real data<\/a><br \/>\n<b> Up:<\/b> <a name=\"tex2html644\" href=\"https:\/\/www.anagram.at\/diplomarbeit\/line-detection\/\">Line Detection<\/a><br \/>\n<!--End of Navigation Panel--><\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Synthetic data<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1946,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":""},"categories":[],"featured_image_src":null,"featured_image_src_square":null,"_links":{"self":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages\/1964"}],"collection":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/comments?post=1964"}],"version-history":[{"count":0,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages\/1964\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/pages\/1946"}],"wp:attachment":[{"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/media?parent=1964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anagram.at\/en\/wp-json\/wp\/v2\/categories?post=1964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}