Skip to content

Commit

Permalink
starman slider
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaoyining committed Apr 17, 2024
1 parent e901677 commit cfe5bdf
Show file tree
Hide file tree
Showing 161 changed files with 207 additions and 25 deletions.
119 changes: 104 additions & 15 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ <h2 class="title is-3">Abstract</h2>
<section class="section">
<!-- Animation. -->
<div class="columns is-centered">
<div class="container is-max-desktop">
<div class="container is-max-desktop">
<center><h2 class="title is-3">Animation</h2></center>

<!-- Interpolating. -->
Expand All @@ -188,26 +188,115 @@ <h2 class="title is-3">Abstract</h2>
</p>
</div>
<div class="columns is-vcentered interpolation-panel">
<div class="column interpolation-video-column">
<div id="wrapper-airway-age">
Loading...
<div class="column interpolation-video-column">
<div id="wrapper-airway-age">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="airway-age-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Age</p></center>
</div>

<div class="column interpolation-video-column">
<div id="wrapper-airway-weight">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="airway-weight-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Weight</p></center>
</div>

<div class="column interpolation-video-column">
<div id="wrapper-airway-sex">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="airway-sex-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Sex</p></center>
</div>
<input class="slider is-fullwidth is-large is-info"
id="airway-age-slider"
step="1" min="0" max=20 value="0" type="range">

</div>


<div class="column interpolation-video-column">
<div id="wrapper-airway-weight">
Loading...
<div class="content has-text-justified">
<p>
Disentangled Shape evolution for Starman.
</p>
</div>
<div class="columns is-vcentered interpolation-panel">
<div class="column interpolation-video-column">
<div id="wrapper-starman-hand">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="starman-hand-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Age</p></center>
</div>
<input class="slider is-fullwidth is-large is-info"
id="airway-weight-slider"
step="1" min="0" max=20 value="0" type="range">
</div>

<div class="column interpolation-video-column">
<div id="wrapper-starman-leg">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="starman-leg-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Weight</p></center>
</div>

</div>

<div class="content has-text-justified">
<p>
Disentangled Shape evolution for Pediatric.
</p>
</div>
<div class="columns is-vcentered interpolation-panel">
<div class="column interpolation-video-column">
<div id="wrapper-adni-age">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="adni-age-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Age</p></center>
</div>

<div class="column interpolation-video-column">
<div id="wrapper-adni-AD">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="adni-AD-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">AD</p></center>
</div>

<div class="column interpolation-video-column">
<div id="wrapper-adni-edu">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="adin-edu-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Educational Length</p></center>
</div>

<div class="column interpolation-video-column">
<div id="wrapper-adni-sex">
Loading...
</div>
<input class="slider is-fullwidth is-large is-info"
id="adin-sex-slider"
step="1" min="0" max=20 value="0" type="range">
<center><p class="is-bold">Sex</p></center>
</div>
</div>

</div>
</div>
</div>
</section>

Expand Down
Binary file added docs/static/interpolation/airway/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file modified docs/static/interpolation/airway/age/000000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000013.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000016.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000018.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/interpolation/airway/age/000019.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added docs/static/interpolation/airway/sex/000000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/interpolation/airway/sex/000001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/interpolation/airway/sex/000002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/interpolation/airway/sex/000003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/interpolation/airway/sex/000004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/interpolation/airway/sex/000005.png
Binary file added docs/static/interpolation/airway/sex/000006.png
Binary file added docs/static/interpolation/airway/sex/000007.png
Binary file added docs/static/interpolation/airway/sex/000008.png
Binary file added docs/static/interpolation/airway/sex/000009.png
Binary file added docs/static/interpolation/airway/sex/000011.png
Binary file added docs/static/interpolation/airway/sex/000012.png
Binary file added docs/static/interpolation/airway/sex/000013.png
Binary file added docs/static/interpolation/airway/sex/000014.png
Binary file added docs/static/interpolation/airway/sex/000015.png
Binary file added docs/static/interpolation/airway/sex/000016.png
Binary file added docs/static/interpolation/airway/sex/000018.png
Binary file added docs/static/interpolation/airway/sex/000019.png
Binary file not shown.
Binary file modified docs/static/interpolation/airway/weight/000000.png
Binary file modified docs/static/interpolation/airway/weight/000001.png
Binary file modified docs/static/interpolation/airway/weight/000002.png
Binary file modified docs/static/interpolation/airway/weight/000003.png
Binary file modified docs/static/interpolation/airway/weight/000004.png
Binary file modified docs/static/interpolation/airway/weight/000005.png
Binary file modified docs/static/interpolation/airway/weight/000006.png
Binary file modified docs/static/interpolation/airway/weight/000007.png
Binary file modified docs/static/interpolation/airway/weight/000008.png
Binary file modified docs/static/interpolation/airway/weight/000009.png
Binary file modified docs/static/interpolation/airway/weight/000010.png
Binary file modified docs/static/interpolation/airway/weight/000011.png
Binary file modified docs/static/interpolation/airway/weight/000012.png
Binary file modified docs/static/interpolation/airway/weight/000013.png
Binary file modified docs/static/interpolation/airway/weight/000014.png
Binary file modified docs/static/interpolation/airway/weight/000015.png
Binary file modified docs/static/interpolation/airway/weight/000016.png
Binary file modified docs/static/interpolation/airway/weight/000017.png
Binary file modified docs/static/interpolation/airway/weight/000018.png
Binary file modified docs/static/interpolation/airway/weight/000019.png
Binary file added docs/static/interpolation/starman/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/static/interpolation/starman/hand/000000.png
Binary file added docs/static/interpolation/starman/hand/000001.png
Binary file added docs/static/interpolation/starman/hand/000002.png
Binary file added docs/static/interpolation/starman/hand/000003.png
Binary file added docs/static/interpolation/starman/hand/000004.png
Binary file added docs/static/interpolation/starman/hand/000005.png
Binary file added docs/static/interpolation/starman/hand/000006.png
Binary file added docs/static/interpolation/starman/hand/000007.png
Binary file added docs/static/interpolation/starman/hand/000008.png
Binary file added docs/static/interpolation/starman/hand/000009.png
Binary file added docs/static/interpolation/starman/hand/000010.png
Binary file added docs/static/interpolation/starman/hand/000011.png
Binary file added docs/static/interpolation/starman/hand/000012.png
Binary file added docs/static/interpolation/starman/hand/000013.png
Binary file added docs/static/interpolation/starman/hand/000014.png
Binary file added docs/static/interpolation/starman/hand/000016.png
Binary file added docs/static/interpolation/starman/hand/000017.png
Binary file added docs/static/interpolation/starman/hand/000018.png
Binary file added docs/static/interpolation/starman/hand/000019.png
Binary file added docs/static/interpolation/starman/hand/comp3d.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/static/interpolation/starman/leg/000000.png
Binary file added docs/static/interpolation/starman/leg/000001.png
Binary file added docs/static/interpolation/starman/leg/000002.png
Binary file added docs/static/interpolation/starman/leg/000004.png
Binary file added docs/static/interpolation/starman/leg/000005.png
Binary file added docs/static/interpolation/starman/leg/000006.png
Binary file added docs/static/interpolation/starman/leg/000007.png
Binary file added docs/static/interpolation/starman/leg/000008.png
Binary file added docs/static/interpolation/starman/leg/000009.png
Binary file added docs/static/interpolation/starman/leg/000010.png
Binary file added docs/static/interpolation/starman/leg/000011.png
Binary file added docs/static/interpolation/starman/leg/000012.png
Binary file added docs/static/interpolation/starman/leg/000013.png
Binary file added docs/static/interpolation/starman/leg/000014.png
Binary file added docs/static/interpolation/starman/leg/000015.png
Binary file added docs/static/interpolation/starman/leg/000016.png
Binary file added docs/static/interpolation/starman/leg/000018.png
Binary file added docs/static/interpolation/starman/leg/000019.png
Binary file added docs/static/interpolation/starman/leg/comp3d.png
Binary file not shown.
Binary file added docs/static/interpolation/starman/leg/surface.vtk
Binary file not shown.
113 changes: 103 additions & 10 deletions docs/static/js/index.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,103 @@
window.HELP_IMPROVE_VIDEOJS = false;

var INTERP_STARMAN_HAND_BASE = "./static/interpolation/starman/hand";
var INTERP_STARMAN_LEG_BASE = "./static/interpolation/starman/leg";

var INTERP_AIRWAY_AGE_BASE = "./static/interpolation/airway/age";
var INTERP_AIRWAY_WEIGHT_BASE = "./static/interpolation/airway/weight";
var INTERP_AIRWAY_SEX_BASE = "./static/interpolation/airway/sex";

var INTERP_ADNI_AGE_BASE = "./static/interpolation/adni/age";
var INTERP_ADNI_AD_BASE = "./static/interpolation/adni/AD";
var INTERP_ADNI_EDU_BASE = "./static/interpolation/adni/edu";
var INTERP_ADNI_SEX_BASE = "./static/interpolation/adni/sex";

var NUM_INTERP_FRAMES = 20;
var interp_starman_hand_images = [];
var interp_starman_leg_images = [];

var interp_airway_age_images = [];
var interp_airway_weight_images = [];
var interp_airway_sex_images = [];

var interp_adni_age_images = [];
var interp_adni_AD_images = [];
var interp_adni_edu_images = [];
var interp_adni_sex_images = [];


function preloadImages() {
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_STARMAN_HAND_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_starman_hand_images[i] = new Image();
interp_starman_hand_images[i].src = path;
}

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_STARMAN_LEG_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_starman_leg_images[i] = new Image();
interp_starman_leg_images[i].src = path;
}

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_AIRWAY_AGE_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_airway_age_images[i] = new Image();
interp_airway_age_images[i].src = path;
}
}

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_AIRWAY_WEIGHT_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_airway_weight_images[i] = new Image();
interp_airway_weight_images[i].src = path;
}
}

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_AIRWAY_SEX_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_airway_sex_images[i] = new Image();
interp_airway_sex_images[i].src = path;
}

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_ADNI_AGE_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_adni_age_images[i] = new Image();
interp_adni_age_images[i].src = path;
}
}

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_ADNI_AD_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_adni_AD_images[i] = new Image();
interp_adni_AD_images[i].src = path;
}
}

for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_ADNI_EDU_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_adni_edu_images[i] = new Image();
interp_adni_edu_images[i].src = path;
}
for (var i = 0; i < NUM_INTERP_FRAMES; i++) {
var path = INTERP_ADNI_SEX_BASE + '/' + String(i).padStart(6, '0') + '.png';
interp_adni_sex_images[i] = new Image();
interp_adni_sex_images[i].src = path;
}
}


function setStarmanHand(i) {
var image = interp_starman_hand_images[i];
image.ondragstart = function() { return false; };
image.oncontextmenu = function() { return false; };
$('#wrapper-starman-hand').empty().append(image);
}

function setStarmanLeg(i) {
var image = interp_starman_leg_images[i];
image.ondragstart = function() { return false; };
image.oncontextmenu = function() { return false; };
$('#wrapper-starman-leg').empty().append(image);
}


function setAirwayAge(i) {
var image = interp_airway_age_images[i];
image.ondragstart = function() { return false; };
Expand All @@ -60,6 +112,13 @@ function setAirwayWeight(i) {
$('#wrapper-airway-weight').empty().append(image);
}

function setAirwaySex(i) {
var image = interp_airway_sex_images[i];
image.ondragstart = function() { return false; };
image.oncontextmenu = function() { return false; };
$('#wrapper-airway-sex').empty().append(image);
}

function setADNIAge(i) {
var image = interp_adni_age_images[i];
image.ondragstart = function() { return false; };
Expand All @@ -82,6 +141,12 @@ function setADNIEdu(i) {
$('#wrapper-adni-edu').empty().append(image);
}

function setADNISex(i) {
var image = interp_adni_edu_images[i];
image.ondragstart = function() { return false; };
image.oncontextmenu = function() { return false; };
$('#wrapper-adni-sex').empty().append(image);
}

$(document).ready(function() {
// Check for click events on the navbar burger icon
Expand Down Expand Up @@ -129,6 +194,19 @@ $(document).ready(function() {
})
}, false);*/
preloadImages();
$('#starman-hand-slider').on('input', function(event) {
setStarmanHand(this.value);
});
setStarmanHand(0);
$('#starman-hand-slider').prop('max', NUM_INTERP_FRAMES - 1);

$('#starman-leg-slider').on('input', function(event) {
setStarmanLeg(this.value);
});
setStarmanLeg(0);
$('#starman-leg-slider').prop('max', NUM_INTERP_FRAMES - 1);



$('#airway-age-slider').on('input', function(event) {
setAirwayAge(this.value);
Expand All @@ -142,6 +220,14 @@ $(document).ready(function() {
setAirwayWeight(0);
$('#airway-weight-slider').prop('max', NUM_INTERP_FRAMES - 1);


$('#airway-sex-slider').on('input', function(event) {
setAirwaySex(this.value);
});
setAirwaySex(0);
$('#airway-sex-slider').prop('max', NUM_INTERP_FRAMES - 1);


$('#ADNI-age-slider').on('input', function(event) {
setADNIAge(this.value);
});
Expand All @@ -155,11 +241,18 @@ $(document).ready(function() {
$('#ADNI-AD-slider').prop('max', NUM_INTERP_FRAMES - 1);

$('#ADNI-edu-slider').on('input', function(event) {
setADNIEddu(this.value);
setADNIEdu(this.value);
});
setADNIEdu(0);
$('#ADNI-EDU-slider').prop('max', NUM_INTERP_FRAMES - 1);

$('#ADNI-sex-slider').on('input', function(event) {
setADNISex(this.value);
});
setADNISex(0);
$('#ADNI-Sex-slider').prop('max', NUM_INTERP_FRAMES - 1);


bulmaSlider.attach();

})

0 comments on commit cfe5bdf

Please sign in to comment.