-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
234 lines (210 loc) · 10.4 KB
/
Copy pathindex.html
File metadata and controls
234 lines (210 loc) · 10.4 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./css/jquery-ui-1.9.2.custom.min.css">
<link rel="stylesheet" type="text/css" href="./css/fft_filter.css">
<title>Image Frequency Filtering</title>
</head>
<body>
<article>
<header>
<h1>Image Frequency Filtering</h1>
</header>
<div class="AllWrapper">
<input type="file" id="input"/>
<div id="PipeWrapper" class="buttonsLabelled">
<label class="buttonLabel">Pipeline</label>
<div id="Pipe">
<input type="radio" id="PipeCPU" name="pipeline" value="PipeCPU" checked="checked"/>
<label for="PipeCPU">CPU</label>
<input type="radio" id="PipeGPU" name="pipeline" value="PipeGPU"/>
<label for="PipeGPU">WebGL</label>
</div>
</div>
<div id="HannWrapper" class="buttonsLabelled">
<label class="buttonLabel">Hanning Window</label>
<div id="Hann">
<input type="radio" id="HannOn" name="winhann" value="HannOn"/>
<label for="HannOn">On</label>
<input type="radio" id="HannOff" name="winhann" value="HannOff" checked="checked"/>
<label for="HannOff">Off</label>
</div>
</div>
<div id="BlueWrapper" class="buttonsLabelled">
<label class="buttonLabel">Bluestein's Algorithm</label>
<div id="Blue">
<input type="radio" id="BlueOn" name="bluestein" value="BlueOn"/>
<label for="BlueOn">On</label>
<input type="radio" id="BlueOff" name="bluestein" value="BlueOff" checked="checked"/>
<label for="BlueOff">Off</label>
</div>
</div>
<div id="OrigLabel" class="imgLabel hider">Original<br/>
</div>
<div id="OrigWrapper" class="imgWrapper" style="width:1px; height:1px">
</div>
<div id="ImageHider" class="hider">
<div class="imgLabel">Filtered Result<br/></div>
<div id="ResultWrapper" class="imgWrapper hider">
<canvas id="Result"></canvas>
</div>
<div id="ResultGPUWrapper" class="imgWrapper hider">
<canvas id="ResultGPU"></canvas>
</div>
<div class="imgLabel">Spectrum</div>
<div id="NotchWrapper" class="imgWrapper">
<div style="position: relative">
<canvas id="Spectrum" style="position: absolute; left: 0; top: 0;"></canvas>
<canvas id="MeasureSpec" style="position: absolute; left: 0; top: 0;"></canvas>
<canvas id="NotchSpec" style="position: absolute; left: 0; top: 0;"></canvas>
</div>
</div>
</div>
<div id="CommandsHider" class="hider">
<div id="FilterTypeWrapper" class="buttonsLabelled">
<label class="buttonLabel">Filter Type</label>
<div id="FilterType">
<input type="radio" id="Measure" name="ftype" value="Measure" checked="checked"/>
<label for="Measure">Measure</label>
<input type="radio" id="HighPass" name="ftype" value="HighPass"/>
<label for="HighPass">High-Pass</label>
<input type="radio" id="LowPass" name="ftype" value="LowPass"/>
<label for="LowPass">Low-Pass</label>
<input type="radio" id="BandPass" name="ftype" value="BandPass"/>
<label for="BandPass">Band-Pass</label>
<input type="radio" id="BandStop" name="ftype" value="BandStop"/>
<label for="BandStop">Band-Stop</label>
<input type="radio" id="Sharpen" name="ftype" value="Sharpen"/>
<label for="Sharpen">Sharpen</label>
<input type="radio" id="Curve" name="ftype" value="Curve"/>
<label for="Curve">Filtering Curve</label>
<input type="radio" id="Notch" name="ftype" value="Notch"/>
<label for="Notch">Notch</label>
</div>
</div>
<div id="FilterTypeGPUWrapper" class="hider buttonsLabelled">
<label class="buttonLabel">Filter Type</label>
<div id="FilterTypeGPU">
<input type="radio" id="MeasureGPU" name="ftypeGPU" value="Measure" checked="checked"/>
<label for="MeasureGPU">Measure</label>
<input type="radio" id="CurveGPU" name="ftypeGPU" value="Curve"/>
<label for="CurveGPU">Filtering Curve</label>
<input type="radio" id="NotchGPU" name="ftypeGPU" value="Notch"/>
<label for="NotchGPU">Notch</label>
</div>
</div>
<div id="FilterStyleHider" class="hider buttonsLabelled">
<label class="buttonLabel">Filter Style</label>
<div id="FilterStyle">
<input type="radio" id="Ideal" name="fstyle" value="Ideal" checked="checked"/>
<label for="Ideal">Ideal</label>
<input type="radio" id="Butter" name="fstyle" value="Butter"/>
<label for="Butter">Butterworth</label>
</div>
</div>
<div id="RadiusSliderHider" class="hider slideLabelled">
<label>Filter Radius: </label>
<div id="RadiusSlider" class="Slider"></div>
</div>
<div id="BandSliderHider" class="hider slideLabelled">
<label>Bandwidth Size: </label>
<div id="BandSlider" class="Slider"></div>
</div>
<div id="SharpSliderHider" class="hider slideLabelled">
<label>Sharpness Strength: </label>
<div id="SharpSlider" class="Slider"></div>
</div>
<div id="ButterSliderHider" class="hider slideLabelled">
<label>Butterworth Order: </label>
<div id="ButterSlider" class="Slider"></div>
</div>
<div id="NotchSliderHider" class="hider slideLabelled">
<label>Brush Size: </label>
<div id="NotchSlider" class="Slider"></div>
</div>
<div id="EditorWrapper" class="hider">
<div id="EditorInnerWrapper">
<canvas id="Editor" width="750" height="150"></canvas>
<div id="Gain" class="label">Gain</div>
<div id="Frequency2" class="label">Frequency</div>
<div id="Instructions">
Click on curve to add points.<br/>
Click and drag points to move.<br/>
Press 'Del' on points to remove them.
</div>
</div>
<p class="filterExamples">
Examples:
<span id="gaussianFilter">Gaussian Blur</span>,
<span id="sharpenFilter">Sharpen</span>,
<span id="edgeFilter">Edge Detection</span>,
<span id="flatFilter">No Filter</span>
</p>
</div>
<div id="MeasInfoHider" class="hider slideLabelled">
<div id="MeasInfo"><span></span></div>
</div>
<div id="WipeMeasureHider" class="hider slideLabelled">
<button id="WipeMeasure">Clear Measurement</button>
</div>
<div id="WipeNotchHider" class="hider slideLabelled">
<button id="WipeNotch">Clear Spectrum</button>
</div>
<div id="SpectrumWrapper" class="buttonsLabelled">
<label class="buttonLabel">Spectrum Display</label>
<div id="ViewType">
<input type="radio" id="Basic" name="view" value="Basic" checked="checked"/>
<label for="Basic">Basic Log</label>
<input type="radio" id="Dampen" name="view" value="Dampen"/>
<label for="Dampen">Dampened</label>
<input type="radio" id="None" name="view" value="None"/>
<label for="None">No Scaling</label>
<input type="radio" id="Phase" name="view" value="Phase"/>
<label for="Phase">Phase</label>
</div>
</div>
<div id="SpectrumGPUWrapper" class="hider buttonsLabelled">
<label class="buttonLabel">Spectrum Display</label>
<div id="ViewTypeGPU">
<input type="radio" id="BasicGPU" name="viewGPU" value="Basic" checked="checked"/>
<label for="BasicGPU">Basic</label>
<input type="radio" id="PhaseGPU" name="viewGPU" value="Phase"/>
<label for="PhaseGPU">Phase</label>
</div>
</div>
<button id="ZoomIn">Zoom In</button>
<button id="ZoomOut">Zoom Out</button>
<button id="LockToImageRez">Lock to Image Resolution</button>
<div id="ApplyFilterHider" class="hider">
<button id="ApplyFilter">Apply Filtering</button>
</div>
<div id="SaveSpecHider" class="hider">
<button id="SaveSpec">Save Spectrum</button>
</div>
<div id="SaveResultHider" class="hider">
<button id="SaveResult">Save Result</button>
</div>
</div>
<div id="Etcetera">
<p>
This site will not work in any version of IE below IE10.</p>
</div>
</div>
</article>
<script src="./scripts/jquery.min.js"></script>
<script src="./scripts/jquery-ui-1.9.2.custom.min.js"></script>
<script src="./scripts/dicomParser.min.js"></script>
<script src="./scripts/cornerstone.min.js"></script>
<script src="./scripts/cornerstoneWADOImageLoader.min.js"></script>
<script src="./scripts/curve.js"></script>
<script src="./scripts/filterer.js"></script>
<script src="./scripts/shared.js"></script>
<script src="./scripts/fft.js"></script>
<script src="./scripts/back-end.js"></script>
<script src="./scripts/cpu-front-end.js"></script>
<script src="./scripts/gpu-front-end.js"></script>
<script src="./scripts/front-end.js"></script>
</body>
</html>