-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
78 lines (78 loc) · 3.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon">
<title>Pixel Clustering</title>
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css"></link>
</head>
<body>
<a href="https://github.com/albin3/pixel-clustering"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/567c3a48d796e2fc06ea80409cc9dd82bf714434/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png"></a>
<div class="row">
<form class="navbar-left form-horizontal img-thumbnail col-md-offset-4" role="form">
<div class="form-group">
<label for="file" class="col-sm-3 control-label">Change Picture</label>
<div class="col-sm-8">
<input id="file" type="file" class="form-control" name="file" placeholder="demo.jpg">
</div>
</div>
<div class="form-group">
<label for="algorithm" class="col-sm-3 control-label">Cluster Algorithm</label>
<div class="col-sm-8">
<select id="algorithm" class="selectpicker form-control">
<option selected>k-means</option>
<option>EM</option>
</select>
</div>
</div>
<div class="form-group">
<label for="n" class="col-sm-3 control-label">Cluster Number</label>
<div class="col-sm-8">
<input id="n" type="text" class="form-control" name="n" value="3" placeholder="default value is 3">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Github</label>
<div class="col-sm-8">
<a href="https://github.com/albin3/pixel-clustering" target="_blank">https://github.com/albin3/pixel-clustering</a>
</div>
</div>
</form>
</div>
<p style="text-align: center;">====================================split line=====================================</p>
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<canvas id="canvasOrigin" class="img-responsive">
<p>your browser doesn't support canvas.</p>
</canvas>
<div class="caption">
<h3>Original Picture</h3>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<canvas id="canvasGray" class="img-responsive"><p>your browser doesn't support canvas.</p></canvas>
<div class="caption">
<h3>Gray Scale Picture</h3>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<canvas id="canvas" class="img-responsive"><p>your browser doesn't support canvas.</p></canvas>
<div class="caption">
<h3>After Clustering</h3>
</div>
</div>
</div>
</div>
<img id="img" style="display: none;"></img>
<script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap-hover-dropdown/2.0.10/bootstrap-hover-dropdown.min.js"></script>
<script src="./js/lib/gaussian.js"></script>
<script src="./js/index.js"></script>
</body>
</html>