forked from neurolabusc/niivue-onnx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (83 loc) · 2.63 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
<!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" />
<title>Niivue ONNX</title>
</head>
<body>
<header>
<button id="segmentBtn">Segment</button>
<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="meshCheck">Show Mesh</label>
<input type="checkbox" id="meshCheck" checked />
<button id="saveImgBtn">Save Image</button>
<button id="createMeshBtn">Create Mesh</button>
<button id="saveMeshBtn">Save Mesh</button>
<div id="loadingCircle" class="loading-circle hidden"></div>
</header>
<main id="canvas-container">
<canvas id="gl1"></canvas>
</main>
<footer id="intensity"> </footer>
<dialog id="remeshDialog">
<form method="dialog">
<p>
<label id="isoLabel">Isosurface Threshold</label>
<input id="isoNumber" type="text" value="0.9">
<p>
<p>
<input type="checkbox" id="bubbleCheck" checked/>
<label>Fill bubbles</label>
</p>
<p>
<input type="checkbox" id="largestCheck" checked/>
<label>Largest cluster only</label>
</p>
<p>
<label for="smoothSlide">Smoothing</label>
<input
type="range"
min="0"
max="20"
value="5"
class="slider"
id="smoothSlide"
/>
</p>
<p>
<label>Simplify Percent (1..100)</label>
<input id="shrinkPct" type="number" min="1" value="30" max="100">
</p>
<button id="cancelBtn" formmethod="dialog">Cancel</button>
<button autofocus id="applyBtn" value="default">Apply</button>
</form>
</dialog>
<dialog id="saveDialog">
<form method="dialog">
<p>
<label>
Format:
<select id="formatSelect">
<option>MZ3 small and precise</option>
<option selected>OBJ widely supported</option>
<option>STL popular for printing</option>
</select>
</label>
</p>
<button id="cancelSaveBtn" formmethod="dialog">Cancel</button>
<button autofocus id="applySaveBtn" value="default">Save</button>
</form>
</dialog>
<script type="module" src="/main.js"></script>
</body>
</html>