File size: 9,362 Bytes
703f5e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

  <!-- Meta -->
  <meta name="Description" content="KLayout layout viewer and editor project page" /> 
  <meta name="Keywords" content="KLayout OASIS GDS2 viewer editor layout semiconductor mask chip design" /> 
  <meta name="abstract" content="KLayout is a free layout viewer and editor for several formats commonly used in the semiconductor industry to transfer layout data" />
  <meta name="URL" content="https://www.klayout.de/" />
  <meta name="Author" content="Matthias Koefferlein" />
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <title>KLayout Layout Viewer And Editor</title>

  <!-- General -->
  <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.klayout.de/news.xml"/>
  <link rel="stylesheet" type="text/css" href="https://www.klayout.de/format.css?v2.0"/>
  <link rel="shortcut icon" href="https://www.klayout.de/favicon.ico"/>

  <!-- Fonts -->
  <link rel="stylesheet" type="text/css" href="https://www.klayout.de/fonts.css"/>

  <!-- jQuery -->
  <script src="https://www.klayout.de/jquery-3.4.1.min.js"></script>

  <!-- bootstrap -->
  <link href="https://www.klayout.de/bootstrap-4.3.1-dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://www.klayout.de/bootstrap-4.3.1-dist/js/bootstrap.min.js"></script>

  <link href="/generated-doc.css" rel="stylesheet">
<link href="/search.css" rel="stylesheet">
<script src="/klayout-search.js"></script>

</head>

<body>

<div class="klayout-header">

  <div class="container mb-5">

    <nav class="navbar navbar-dark navbar-expand-lg">

      <a class="navbar-brand" href="https://www.klayout.de"><img src="https://www.klayout.de/klayout.png" srcset="https://www.klayout.de/klayout-x2.png 2x" alt="KLayout"></a>

      <div class="collapse navbar-collapse" id="navbarToggleExternalContent">

          <ul class="navbar-nav ml-auto mr-auto">

            <li class="nav-item dropdown active mr-4">
              <a class="nav-link dropdown-toggle klayout-menu" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                About
              </a>
              <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                <a class="dropdown-item" href="https://www.klayout.de/intro.html">KLayout Project</a>
                <a class="dropdown-item" href="https://www.klayout.de/doc.html">Documentation</a>
                <a class="dropdown-item" href="https://www.klayout.de/galleries.html">Galleries</a>
                <a class="dropdown-item" href="https://www.klayout.de/credits.html">Credits</a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="https://www.klayout.de/contact.html">Contact</a>
                <a class="dropdown-item" href="https://www.klayout.de/impressum.html">Impressum / Imprint</a>
                <a class="dropdown-item" href="https://www.klayout.de/privacy_policy.html">Datenschutz / Privacy Policy</a>
              </div>
            </li>
            <li class="nav-item active mr-4">
              <a class="nav-link klayout-menu" href="https://www.klayout.de/build.html">Get KLayout</a>
            </li>
            <li class="nav-item active mr-4">
              <a class="nav-link klayout-menu" href="https://sami.klayout.org">Package Index</a>
            </li>
            <li class="nav-item active mr-5">
              <a class="nav-link klayout-menu" href="https://www.klayout.de/forum">Forum</a>
            </li>
            <li class="nav-item active">
              <span class="nav-link klayout-menu">
                <a href="https://f-si.org"><img src="https://www.klayout.de/f-si_logo_32h_w.png" border="0" title="Free Silicon Foundation" alt="F-Si"/></a>
                <a class="ml-4" href="https://github.com/KLayout"><img src="https://www.klayout.de/GitHub-Mark-32px-white.png" border="0" title="KLayout on GitHub" alt="GitHub"/></a>
              </span>
            </li>

          </ul>

      </div>

      <!-- collapse button -->
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>

    </nav>

  </div>

</div>

<div class="container">





<form class="search">
  <div class="input-group">
    <input id="search-text" class="form-control" type="text" onkeydown="klayoutSearchTextChanged()">
    <div class="input-group-append">
      <button class="btn btn-secondary" type="submit" id="search-button" onclick="klayoutSearchClicked(5); event.returnValue = false; return false">Search</button>
    </div>
  </div>
</form>

<div id="search-result">
  <div class="search-results-close-box" onclick="klayoutSearchCloseClicked()"></div>
  <div id="search-results-container">
  </div>
</div>

<div class='klayout-generated-doc'><p class="navigator"><b>KLayout Documentation (Qt 5): </b><a href="../index.html">Main Index</a> » <a href="index.html">KLayout User Manual</a> » <a href="basic.html">KLayout Basics</a> » Using Landmarks To Align Images</p><h1>Using Landmarks To Align Images</h1><a name="k_1"></a><a name="k_2"></a><a name="k_3"></a><p>
  &quot;Landmarks&quot; are arbitrary positions in the image. You can define such positions graphically in an image
  and then, within the layout view, use the defined landmarks as handles to align an image with a layout.
  Depending on the number of landmarks defined, you can use this feature to compensate the shift of an image,
  rotation, shear or even perspective distortion. 
  </p><p>
  Landmarks are defined in the landmark editor. Open the landmark editor by pressing the &quot;Define&quot; button
  in the image properties dialogs.
  </p><p>
  The landmarks editor shows the image in the left panel and a list of the landmarks already defined 
  int the right panel. You can zoom around the image view using the same methods than in KLayout's
  layout view (mouse wheel, middle mouse button, zoom box with right mouse button).
  </p><p>
  To add a landmark choose &quot;Add&quot; mode. Then click at the desired position of the new
  landmark. It will be shown in the image as a small target cross symbol. 
  To delete a landmark, choose &quot;Delete&quot; mode and click on the landmark to delete.
  You can also select a landmark from the list and enter Delete mode. In that case,
  the currently selected landmarks are deleted. 
  </p><p>
  To move a landmark, enter &quot;Move&quot; mode and move the landmark. Please note that the
  move operations follows KLayouts &quot;pick and place&quot; philosophy, so you have to click
  with the mouse twice: once to pick the landmark and second to drop it. The advantage
  of this approach is that you can zoom while dragging the landmark.
  </p><p>
  It does not make much sense to define more than 4 landmarks because for more
  the transformation derived from the landmarks is overdetermined. For best 
  accuracy it is important to select landmark positions that span a large region.
  In particular, landmarks should not be too close and three landmarks should
  not form a line.
  </p><p>
  Dependent on the number of landmarks, KLayout can adjust the following 
  parameters of the image:
  </p><ul><li><b>1 Landmark</b>: displacement</li><li><b>2 Landmarks</b>: displacement, rotation and magnification</li><li><b>3 Landmarks</b>: displacement, rotation, magnification and shear</li><li><b>4 Landmarks</b>: displacement, rotation, magnification, shear and perspective distortion</li></ul><p>
  Once the landmarks are defined, they can be used to adjust the image's display transformation.
  To do so, enter &quot;Move&quot; move in KLayout. When the mouse is over the image, the landmark symbols are 
  shown and can be picked with the mouse. When you pick up a landmark and move the mouse, KLayout will
  adjust the image transformation and display the image frame according to the new transformation.
  When you drop the landmark, the image will be transformed accordingly.
  </p><p>
  Depending on the number of landmarks, KLayout can adjust either some or all transformation parameters
  such as displacement, angle etc. such that the other landmarks stay on the same position. 
  In some cases that may not be desired. For example, if four landmarks are defined and one of them
  is moved, the result may be an extreme perspective distortion. Usually one would do a coarse adjustment
  by roughly adjusting the position and magnification and use the perspective transformation only to 
  fine-adjust the image finally. 
  </p><p>
  Hence, KLayout allows reduction of the degree of freedom it has when adjusting the transformation.
  While you drag a landmark, you can use these modifier keys:
  </p><ul><li><b>Shift</b>: Only adjust displacement</li><li><b>Ctrl</b>: Adjust displacement, rotation and magnification</li><li><b>Shift+Ctrl</b>: Adjust displacement, rotation, magnification and shear</li></ul></div>
</div>
</body>
</html>