-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
147 lines (128 loc) · 4.13 KB
/
index.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
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
<!DOCTYPE html>
<html ng-app="Triangulator">
<head>
<title>Triangulator | Delaunay triangulation image generator.</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/style.css" />
<link rel="icon" href="favicon.ico" />
<link
href="http://fonts.googleapis.com/css?family=Lato:400,700"
rel="stylesheet"
type="text/css"
/>
</head>
<body ng-controller="MainCtrl">
<nav id="sidebar">
<div class="title header">
<h1>Triangulator</h1>
</div>
<div class="section p-1x">
<form>
<label for="algorithmSelect">Algorithm:</label>
<select ng-model="process.algorithm" id="algorithmSelect">
<option value="yape06">YAPE06</option>
<option value="yape">YAPE</option>
<option value="fast">Fast Corners</option>
</select>
<div ng-if="process.algorithm === 'yape06'">
<label for="yapeLaplacianRange">Laplacian Range:</label>
<input
type="range"
min="1"
max="100"
step="1"
ng-model="process.yapeLaplacian"
id="yapeLaplacianRange"
/>
<label for="yapeMineigenRange">Mineigen Range</label>
<input
type="range"
min="1"
max="250"
step="1"
ng-model="process.yapeMineigen"
id="yapeMineigenRange"
/>
</div>
<div ng-if="process.algorithm === 'yape'">
<label for="yapeRadiusSelect">Radius:</label>
<input
type="range"
min="1"
max="10"
step="1"
ng-model="process.yapeRadius"
id="yapeRadiusSelect"
/>
</div>
<div ng-if="process.algorithm === 'fast'">
<label for="fastTresholdRange">Treshold:</label>
<input
type="range"
min="1"
max="50"
step=".5"
ng-model="process.fastTreshold"
id="fastTresholdRange"
/>
</div>
<label for="sizeSelect">Image size:</label>
<select ng-model="process.size" id="sizeSelect">
<option value="720">720p</option>
<option value="1080">1080p</option>
<option value="2160">2160p</option>
<option value="0">Original</option>
</select>
<div class="txt-center">
<a ng-click="restart()" class="button m-1x inline-block">Restart</a>
</div>
</form>
</div>
</nav>
<main id="main">
<div class="top header"></div>
<div class="content p-1x">
<canvas
ng-file-select="onFileSelect($files)"
ng-file-drop="onFileSelect($files)"
accept="image/*"
id="delaunay"
class="sh"
></canvas>
<div class="txt-center">
<div
class="button m-1x inline-block txt-big"
ng-file-select="onFileSelect($files)"
accept="image/*"
>
Try New Image
</div>
<a id="download" class="button m-1x inline-block txt-big">Download</a>
</div>
</div>
<div class="footer p-1x">
Delaunay triangulation image generator. Create triangulated images online. By
<a href="https://twitter.com/javierbyte">@javierbyte</a>.
</div>
</main>
<script src="js/angular-file-upload-shim.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/angular-file-upload.min.js"></script>
<script src="js/jsfeat-min.js"></script>
<script src="js/delaunay.js"></script>
<script src="js/triangulator.js"></script>
<script src="js/app.js"></script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-44329676-12"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-44329676-12");
</script>
</body>
</html>