-
Notifications
You must be signed in to change notification settings - Fork 44
/
index.html
90 lines (87 loc) · 3.11 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/niivue.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>AI powered brain segmentation</title>
</head>
<body>
<header>
<label for="clipCheck">Clip Plane</label>
<input type="checkbox" id="clipCheck" unchecked />
<label for="opacitySlider0">Background Opacity</label>
<input type="range" min="0" max="255" value="255" class="slider" id="opacitySlider0" />
<label for="opacitySlider1">Overlay Opacity</label>
<input type="range" min="0" max="255" value="128" class="slider" id="opacitySlider1" />
<label for="modelSelect">Segmentation Model</label>
<select id="modelSelect">
</select>
<button id="saveImgBtn">Save Overlay</button>
<button id="saveSceneBtn">Save Scene</button>
<label for="workerCheck">Use Webworker</label>
<input type="checkbox" title="webworkers are faster but not supported by all browsers" id="workerCheck" checked />
<label for="penDrop">Draw</label>
<select id="penDrop">
<option value="-1">Off</option>
<option value="2">On</option>
<option value="10">Filled</option>
<option value="0">Erase</option>
</select>
<select id="drawDrop">
<option value="0">Undo</option>
<option value="1">Append</option>
<option value="2">Remove</option>
</select>
<label for="dragMode">Drag Mode</label>
<select id="dragMode">
<option>none</option>
<option>contrast</option>
<option>measurement</option>
<option selected>pan/zoom</option>
<option>slicer3D</option>
</select>
<button id="diagnosticsBtn">Diagnostics</button>
<button id="aboutBtn">About</button>
</header>
<main id="canvas-container">
<canvas id="gl1"></canvas>
</main>
<footer>
<div class="footer">
<table class="footer">
<tr>
<th id="location">Drag and Drop any NIfTI image</th>
<th><progress id="modelProgress" value="0" max="100"> 32% </progress></th>
<th>
<!-- important to use class footer here -->
<div class="footer" id="memstatus" style="color: green">Memory OK</div>
</th>
<th>
<div class="github-star">
<div class="star-button">
<a href="https://github.com/neuroneural/brainchop" target="_blank" style="text-decoration:none">
<i class="fa-brands fa-github" style="color: #000000;"></i>
<span>Star</span>
</a>
</div>
<div id="star-count">0</div>
</div>
</th>
</tr>
</table>
</div>
</footer>
<script type="module" src="/main.js"></script>
</body>
</html>