-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbinarize.html
67 lines (67 loc) · 2.59 KB
/
binarize.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
<html>
<head>
<meta name="copyright" content="Copyright © 2018/04/14- [email protected] . All Rights Reserved.">
<meta charset="utf-8">
<title> Binarize </title>
<link rel="stylesheet" href="index.css">
<style>
div.box { float:left ; }
</style>
</head>
<body>
<div class="container">
<div id="controlPanel">
<div style="display:flex">
<div>
maxWidthHeight:<input id="maxWidthHeightRange" type="range" min="16" max="2048" step="1" value="480">:<input type="text" id="maxWidthHeightText" size="5">
<br />
grayscale:<input id="grayscaleCheckbox" type="checkbox" checked/>
</div>
<div>
threshold:<input id="thresholdRange" type="range" min="0" max="255" step="1" value="110">:<input type="text" id="thresholdText" size="4">
<br />
p-tile:<input id="pTileRange" type="range" min="0" max="100" step="1" value="43">:<input type="text" id="pTileText" size="4">
</div>
<div>
Dither: <br />
<select id="ditherSelect" size="3">
<option value="none" selected> 無し </option>
<option value="random" > ランダム </option>
</select>
</div>
<div>
totalLine:<input id="totalLineCheckbox" type="checkbox" />
<br />
histogram:<input id="histogramCheckbox" type="checkbox" checked/>
</div>
</div>
</div> <!-- controlPanel -->
<div>
<div style="float:left">
<canvas id="srcCanvas" class="borderRed" width=200 height=200> srcCanvas </canvas>
</div>
<div style="float:left">
histogram <br />
<canvas id="histCanvas" class="borderGray" width=256 height=256> histCanvas </canvas>
</div>
<div style="float:left">
differential histogram <br />
<canvas id="diffhistCanvas" class="borderGray" width=256 height=256> histCanvas </canvas>
</div>
<div style="float:left">
laplacian histogram <br />
<canvas id="laphistCanvas" class="borderGray" width=256 height=256> histCanvas </canvas>
</div>
<div style="float:left">
<canvas id="dstCanvas" class="borderBlue" width=200 height=200> srcCanvas </canvas>
</div>
</div>
</div> <!-- container -->
<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="binarize.js"> </script>
</body>
</html>