-
Notifications
You must be signed in to change notification settings - Fork 2
/
homography.html
63 lines (48 loc) · 2.8 KB
/
homography.html
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
<html>
<head>
<meta name="copyright" content="Copyright © 2020/09/10- [email protected] . All Rights Reserved.">
<meta charset="utf-8">
<title> homography </title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<div class="controlPanel" style="display:flex;">
<div>
maxWidthHeight:
<input id="maxWidthHeightRange" type="range" min="16" max="2048" step="1" value="640">:<input type="text" id="maxWidthHeightText" size="5">
<br />
marker:<input id="markerCheckbox" type="checkbox" checked="checked" /> <br />
<span style="position:relative; top:-1ex;"> Interpolation: </span>
<select id="interpolationSelect" size="3">
<option value="NN" > Nearest neighbor </option>
<option value="NNBL" selected> NN & BL </option>
<option value="BL" > Bi-linear </option>
</select>
</div>
<div>
Reverse Projection parameter: <br />
a:<input id="aRange" type="range" min="-2.0" max="2.0" step="0.001" value="1.0">:<input type="text" id="aText" size="6">
b:<input id="bRange" type="range" min="-2.0" max="2.0" step="0.001" value="0.0">:<input type="text" id="bText" size="6">
c:<input id="cRange" type="range" min="-2.0" max="2.0" step="0.001" value="0.0">:<input type="text" id="cText" size="6">
<br />
d:<input id="dRange" type="range" min="-2.0" max="2.0" step="0.001" value="0.0">:<input type="text" id="dText" size="6">
e:<input id="eRange" type="range" min="-2.0" max="2.0" step="0.001" value="1.0">:<input type="text" id="eText" size="6">
f:<input id="fRange" type="range" min="-2.0" max="2.0" step="0.001" value="0.0">:<input type="text" id="fText" size="6">
<br />
g:<input id="gRange" type="range" min="-2.0" max="2.0" step="0.001" value="0.0">:<input type="text" id="gText" size="6">
h:<input id="hRange" type="range" min="-2.0" max="2.0" step="0.001" value="0.0">:<input type="text" id="hText" size="6">
</div>
</div> <!-- controlPanel -->
<canvas id="srcCanvas" class="borderRed" width=200 height=200> srcCanvas </canvas>
<canvas id="dstCanvas" class="borderBlue" width=200 height=200> dstCanvas </canvas>
</div> <!-- container -->
<script type="text/javascript" src="lib/math.js"> </script>
<script type="text/javascript" src="lib/drop.js"> </script>
<script type="text/javascript" src="lib/bind.js"> </script>
<script type="text/javascript" src="lib/canvas.js"> </script>
<script type="text/javascript" src="lib/loading.js"> </script>
<script type="text/javascript" src="lib/worker.js"> </script>
<script type="text/javascript" src="homography.js"> </script>
</body>
</html>