forked from dicengine/dicegui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcal.html
More file actions
195 lines (194 loc) · 13 KB
/
cal.html
File metadata and controls
195 lines (194 loc) · 13 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Stereo Camera Calibration</title>
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="./js/jquery.min.js"></script>
<script src="./js/jquery-ui.js"></script>
<script>if (window.module) module = window.module;</script>
<script type="text/javascript" src="./js/loader.js"></script>
<script src="./js/requires.js" defer></script>
<script src="./js/file_utils.js" defer></script>
<script src="./js/cal.js" defer></script>
<script src="./js/global.js" defer></script>
<!-- Panzoom -->
<script src="./js/jquery.panzoom.min.js" defer></script>
<script src="./js/viewer.js" defer></script>
<!-- Local style sheet -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Google fonts and icons -->
<link rel="stylesheet" type="text/css" href="open_sans.css">
<link rel="stylesheet" type="text/css" href="material_icons.css">
</head>
<body>
<div class="wrapper" style="padding:10px;">
<!-- image selection column -->
<div style="width:100%; height:700px; display:inline-block; min-height:700px;">
<div calss="toggle-div" style="width:32%; height:100%; float:left;">
<div class="toggle-div-banner">FILE SELECTION</div>
<div class="toggle-div-body" style="height:calc(100% - 32px);">
<div id="changeImageFolder" class="action-li" style="margin-top:10px;"><i class="material-icons md-dark md-br-pad" style="margin-bottom:10px;">folder</i>
image folder
</div>
<div id="imageFolder" style="word-wrap: break-word; margin-bottom:10px;"><span id="imageFolderSpan"></span></div>
<div>image prefix</div>
<input type="text" id="imagePrefix" name="imagePrefix" value="" style="width:100%;">
<div>start index</div>
<input type="text" id="startIndex" name="startIndex" value="0" style="width:100%;">
<div>end index</div>
<input type="text" id="endIndex" name="endIndex" value="0" style="width:100%;">
<div>frame interval</div>
<input type="text" id="skipIndex" name="skipIndex" value="1" style="width:100%;">
<div>digits in number</div>
<input type="text" id="numDigits" name="numDigits" value="1" style="width:100%;">
<div>stereo left suffix</div>
<input type="text" id="stereoLeftSuffix" name="stereoLeftSuffix" value="_0" style="width:100%;">
<div class="trinocOption">stereo middle suffix</div>
<input class="trinocOption" type="text" id="stereoMiddleSuffix" name="stereoMiddleSuffix" value="" style="width:100%;">
<div>stereo right suffix</div>
<input type="text" id="stereoRightSuffix" name="stereoRightSuffix" value="_1" style="width:100%">
<div>extension</div>
<input type="text" id="imageExtension" name="imageExtension" value="" style="width:100%; margin-bottom:10px;">
<div>preview</div>
<div id="framePreview" style="width:100%;"><span id="frameStartPreviewSpan" style="display:block; float:left; width:33%;">0</span><span id="frameCurrentPreviewSpan" style="display:block; text-align:center; float:left; width:33%;">0</span><span id="frameEndPreviewSpan" style="display:block; text-align:right; float:left; width:33%;">1</span></div>
<input style="width:100%;" id="calFrameScroller" type="range" min="0" max="1" defaultValue="0" value="0" step="1">
<div style="margin-bottom:4px; margin-top:10px;">sample left cal image filename:</div>
<div id="imageSequencePreview" class="sample-filename" style="word-wrap: break-word; margin-bottom:10px;height:200px;"><span id="imageSequencePreviewSpan"></span></div>
</div>
</div>
<!-- board dimensions column -->
<div class="toggle-div" style="width:32%; height:100%; float:left; margin-left:10px;">
<div class="toggle-div-banner">PATTERN OPTIONS</div>
<div class="toggle-div-body" style="height:calc(100% - 32px);">
<div><!-- style="width:30%; height:100%; float:left;">-->
<select id="calMode" style="width:75%; margin-bottom:10px; margin-top:10px;">
<option value="vic3d">symmetric dot grid with special corner dots</option>
<option value="vic3dDark">symmetric dot grid with special corner dots (white dots on black)</option>
<!--<option value="checkerboard">checkerboard</option>-->
</select>
<img id="boardImage" src="./images/MarkerCalExample.png" alt="example checkerboard cal target" height="250" width="auto">
</div>
<p class="board-size" style="margin-top:10px;">pattern width</p>
<select class="board-size" id="calWidth" style="width:30%; margin-bottom:10px;">
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
</select>
<p class="board-size">pattern height</p>
<select class="board-size" id="calHeight" style="width:30%; margin-bottom:10px;">
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
</select>
<div style="margin-top:10px;">pattern spacing size</div>
<input type="text" id="targetSpacingSize" name="targetSpacingSize" value="1.0" style="width:30%;margin-top:5px;">
<p style="margin-top:10px;"><input id="previewThreshCheck" type="checkbox"> preview threshold</p>
<p style="margin-top:10px;"><input id="adaptiveThreshCheck" type="checkbox" checked> use adaptive threshold</p>
<p id="calAdaptiveThreshP" style="margin-top:10px;">adaptive thresh constant: <label id="calAdaptiveThreshConstantLabel">50</label> (counts)</p>
<input id="calAdaptiveThreshConstant" type="range" min="-75" max="100.0" defaultValue="50" value="50" step="1">
<p id="calThreshP" style="margin-top:10px;">thresholding constant: <label id="calThreshConstantLabel">100</label> (counts)</p>
<input id="calThreshConstant" type="range" min="0" max="255.0" defaultValue="100" value="100" step="1">
</div>
</div><!-- end middle col top row-->
<div class="toggle-div" style="width:32%; height:100%; float:left; margin-left:10px; overflow:auto;">
<div class="toggle-div-banner">CALIBRATION</div>
<div class="toggle-div-body" style="height:calc(100% - 32px);;">
<!-- preview area for the processing cal -->
<div id="calConsoleWindow" class="console" style="border:1px solid #D0D0D0; background-color:#FFFFFF; margin-top:10px; padding:5px; width:100%; height: 200px;">
Console output: <br/><br/>
</div>
<div id="runLoaderCal" class="pre-loader" style="margin-top:10px; margin-bottom:10px; width:100%;"></div>
<button class="calib-button float-left" id="calibrateButton" type="button">calibrate</button>
<button class="calib-button float-left" id="acceptButton" type="button">accept</button>
<button class="calib-button float-left" id="cancelButton" type="button">abort</button>
<div id="calOutputPreview" style="font-weight: bold; word-wrap: break-word; margin-top:5px;">output file: <span style="font-weight:normal;"id="calOutputPreviewSpan"></span></div>
<div id="rmsPreview" style="font-weight: bold; word-wrap: break-word; margin-top:5px;">rms error: <span style="font-weight:normal;" id="rmsPreviewSpan"></span></div>
<div id="epipolarPreview" style="font-weight: bold; word-wrap: break-word; margin-top:5px;">avg epipolar error: <span style="font-weight:normal;" id="epipolarPreviewSpan"></span></div>
<div style="margin-top:20px;">select files to skip (ctrl click to deselect):</div>
<div class="selectable-box">
<ol id="selectable">
<!--<li class="ui-widget-content">Item 1</li>-->
</ol>
</div>
</div><!-- end right col top row -->
</div>
</div> <!-- end second row -->
<div style="width:100%; height:calc(100% - 700px); float:left;">
<div id="leftPreviewToggle" class="toggle-div" style="float:left;height:100%;width:32%;">
<div class="toggle-div-banner"><span style="display:block;float:left;text-align:left;width:40%;">PREVIEW LEFT</span><span id="previewLeftSpan" style="display:block;float:left;text-align:right;color:red;width:60%;"></span></div>
<div id="leftPreviewBody" class="toggle-div-body" style="padding:0px;height:calc(100% - 32px);min-height:200px;">
<!--<div>
<span style="width:33%; float:left; text-align:left;">LEFT</span>
<span style="width:33%; float:left; text-align:left;" class="trinocOption">MIDDLE</span>
<span style="width:33%; float:left; text-align:left;">RIGHT</span>
</div>-->
<div id="viewWindowLeftCal" style="background-color:#ffffff; width:100%; height:100%;">
<div id="panzoomLeftCal" class="panzoom"></div>
</div>
</div> <!-- close body -->
</div> <!-- close toggle div -->
<div class="toggle-div trinocOption" style="float:left;height:100%;width:32%; margin-left:10px;">
<div class="toggle-div-banner"><span style="display:block;float:left;text-align:left;width:40%;">PREVIEW MIDDLE</span><span id="previewMiddleSpan" style="display:block;float:left;text-align:right;color:red;width:60%;"></span></div>
<div id="middlePreviewBody" class="toggle-div-body" style="padding:0px;height:calc(100% - 32px);min-height:200px;">
<div id="viewWindowMiddleCal" class="trinocOption" style="background-color:#ffffff; width:100%; height:100%;">
<div id="panzoomMiddleCal" class="panzoom trinocOption"></div>
</div>
</div> <!-- close body -->
</div> <!-- close toggle div -->
<div id="rightPreviewToggle" class="toggle-div" style="float:left;height:100%;width:32%; margin-left:10px;">
<div class="toggle-div-banner"><span style="display:block;float:left;text-align:left;width:40%;">PREVIEW RIGHT</span><span id="previewRightSpan" style="display:block;float:left;text-align:right;color:red;width:60%;"></span></div>
<div id="rightPreviewBody" class="toggle-div-body" style="padding:0px;height:calc(100% - 32px);min-height:200px;">
<div id="viewWindowRightCal" style="background-color:#ffffff; width:100%; height:100%;">
<div id="panzoomRightCal" class="panzoom"></div>
</div>
</div> <!-- close body -->
</div> <!-- close toggle div -->
</div><!-- end preivew row -->
<!--<div style="width:100%">-->
<!--<div style="margin-top:20px;">binary conversion threshold: <label id="binaryLabel">30</label></div>
<input id="binaryThresh" type="range" min="0" max="254.0" defaultValue="30" value="30" step="2">-->
<!--</div>-->
</div> <!-- end content-->
</body>
</html>