Skip to content

Commit e07cab6

Browse files
committed
add comparison to rgbd camera
1 parent d09f1b0 commit e07cab6

File tree

11 files changed

+116
-12
lines changed

11 files changed

+116
-12
lines changed

index.html

Lines changed: 105 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,54 @@ <h2 class="title is-3" style="text-align: center;">Comparison to Metric Monocula
293293
</div>
294294
</div>
295295

296-
<br>
297-
<br>
298-
<div class="columns is-centered has-text-centered">
296+
297+
<div class="columns is-centered has-text-centered" style="margin-top: 100px;">
298+
<div class="column is-full">
299+
<h2 class="title is-3" style="text-align: center;">Comparison to RGBD Camera</h2>
300+
<p style="text-align: left;">We compare to common RGBD cameras including RealSense, Kinect, Zed. Ours uses the same stereo image from Zed as input. Different cameras may use different filtering steps for postprocessing, wherease the point cloud accuracy should not be affected.</p>
301+
<div style="display: flex; flex: none; align-items: center; justify-content: center; gap: 10px; margin-top: 10px;">
302+
<p class="title is-5" style="margin: 0;">Scene:</p>
303+
<span id="Toolbox" class="button scene_cam is-info is-rounded" onclick="change_scene_cam('Toolbox')">
304+
Toolbox
305+
</span>
306+
</div>
307+
<div style="display: flex; flex: none; align-items: center; justify-content: center; gap: 10px; margin-top: 10px">
308+
<p class="title is-5" style="margin: 0;">Result:</p>
309+
<span id="Ours_cam" class="button method_cam is-info is-rounded" onclick="change_method_cam('Ours')">
310+
Ours
311+
</span>
312+
<span id="Zed" class="button method_cam is-black is-rounded" onclick="change_method_cam('Zed')">
313+
Zed
314+
</span>
315+
<span id="RealSense" class="button method_cam is-black is-rounded" onclick="change_method_cam('RealSense')">
316+
RealSense
317+
</span>
318+
<span id="Kinect Azure" class="button method_cam is-black is-rounded" onclick="change_method_cam('Kinect Azure')">
319+
Kinect Azure
320+
</span>
321+
</div>
322+
<div style="display: flex; width: 100%; flex: none; text-align: center; justify-content: center; gap: 2px; margin-top: 10px; margin-bottom:0px">
323+
<img id="left_cam" style="width: 40%; height: auto; display: block; object-fit: contain; ">
324+
<model-viewer style="width: 50%; height: auto; aspect-ratio: 3/2; border: 1px solid black; display: inline-block; "
325+
id="cloud_cam"
326+
exposure="0.5"
327+
max-camera-orbit="Infinity 180deg 100%"
328+
min-camera-orbit="-Infinity -180deg 10%"
329+
orientation="0deg 180deg 180deg"
330+
camera-orbit="180deg 90deg 60%"
331+
camera-controls touch-action="none">
332+
</model-viewer>
333+
</div>
334+
335+
</div>
336+
</div>
337+
</div>
338+
339+
<div class="columns is-centered has-text-centered", style="margin-top: 100px;">
299340
<div class="column is-four-fifths">
300341
<h2 class="title is-3">Quantitative Comparison</h2>
301-
<img src="static/images/table_zero_shot.jpg" width="60%">
302-
<img src="static/images/eth.jpg" width="60%" style="margin-top: 20px;">
342+
<img src="static/images/table_zero_shot.jpg" width="50%">
343+
<img src="static/images/eth.jpg" width="50%" style="margin-top: 20px;">
303344
</div>
304345
</div>
305346

@@ -488,28 +529,50 @@ <h2 class="title">Acknowledgement</h2>
488529
},
489530
}
490531

532+
533+
const cam_comparison = {
534+
"Toolbox":{
535+
"left":"static/comparison/toolbox/left.png",
536+
"Ours":
537+
{
538+
'cloud': "static/comparison/toolbox/ours_denoise.glb"
539+
},
540+
"Zed":
541+
{
542+
'cloud': "static/comparison/toolbox/zed.glb"
543+
},
544+
"RealSense":
545+
{
546+
'cloud': "static/comparison/toolbox/realsense.glb"
547+
},
548+
"Kinect Azure":
549+
{
550+
'cloud': "static/comparison/toolbox/kinect.glb"
551+
},
552+
},
553+
}
554+
491555
var cur_scene = 'Endeavor';
492556
var cur_method = 'Ours'
493557
var cur_method_mono = 'Ours'
558+
var cur_scene_cam = 'Toolbox';
559+
var cur_method_cam = 'Ours'
494560
window.onload = () => {
495561
const left = document.getElementById('left');
496562
const disp = document.getElementById('disp');
497563
const cloud = document.getElementById('cloud');
498564
// const mono_disp = document.getElementById('mono_disp');
499565
const mono_cloud = document.getElementById('mono_cloud');
566+
const left_cam = document.getElementById('left_cam');
567+
const cloud_cam = document.getElementById('cloud_cam');
500568

501569
// Set default image and mark the default button as active
502570
left.src = comparison[cur_scene]['left'];
503-
// left.onmouseover = () => {
504-
// left.src = comparison[cur_scene]['right']
505-
// }
506-
// left.onmouseout = () => {
507-
// left.src = comparison[cur_scene]['left']
508-
// }
509571
disp.src = comparison[cur_scene][cur_method]['disp'];
510572
cloud.src = comparison[cur_scene][cur_method]['cloud'];
511-
// mono_disp.src = mono_comparison[cur_method_mono]['disp'];
512573
mono_cloud.src = mono_comparison[cur_method_mono]['cloud'];
574+
left_cam.src = cam_comparison[cur_scene_cam]['left'];
575+
cloud_cam.src = cam_comparison[cur_scene_cam][cur_method_cam]['cloud'];
513576
};
514577

515578

@@ -567,6 +630,36 @@ <h2 class="title">Acknowledgement</h2>
567630
document.getElementById(method).className = 'button method_mono is-info is-rounded'
568631
}
569632

633+
function change_scene_cam(scene) {
634+
cur_scene_cam = scene
635+
const left_cam = document.getElementById('left_cam');
636+
const buttons = document.querySelectorAll('.scene_cam');
637+
638+
// Update the image source based on the scene
639+
left_cam.src = cam_comparison[scene]['left'];
640+
641+
// Update active button styling
642+
buttons.forEach(button => button.className='button scene_cam is-black is-rounded');
643+
document.getElementById(scene).className = 'button scene_cam is-info is-rounded'
644+
645+
change_method_cam(cur_method_cam)
646+
}
647+
648+
function change_method_cam(method) {
649+
cur_method_cam = method
650+
const cloud_cam = document.getElementById('cloud_cam');
651+
const buttons = document.querySelectorAll('.method_cam');
652+
653+
cloud_cam.src = cam_comparison[cur_scene_cam][method]['cloud']
654+
655+
// Update active button styling
656+
buttons.forEach(button => button.className='button method_cam is-black is-rounded');
657+
if (method=='Ours'){
658+
method = 'Ours_cam'
659+
}
660+
document.getElementById(method).className = 'button method_cam is-info is-rounded'
661+
}
662+
570663

571664
</script>
572665

0 commit comments

Comments
 (0)