-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·25 lines (23 loc) · 1.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
<html>
<head>
<link href="css/index.css" rel="stylesheet"/>
</head>
<body>
<div id='overlay' style='position:absolute;width:100%;height:100%;background:black;opacity:0.9'>
<span style='color:white;text-align:center;width:100%;line-height:30;margin-left:2%;'>Adjust the slider to set the threshold to a value in between 0 to 255. Processing logic: the loop runs for every pixel's RGB value . if R> threshold, R=255 else R=0 . Similarly for G and B. </span>
<span style=''>Start</span>
</div>
<input type='range' id='threshold' value='50'>
<div class="container" id='thresholding_container'>
<canvas id='res' width=500 height=500></canvas>
<canvas id='ref' width=500 height=500></canvas>
</div>
<div class="container" id='histogram_container' style='display:none;'>
<canvas id='redHist'></canvas>
<canvas id='greenHist'></canvas>
<canvas id='blueHist'></canvas>
</div>
<script src="js/jquery.js"></script>
<script src="js/index.js"></script>
</body>
</html>