This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
html, body { | |
background-color:#000; | |
margin: 0; | |
padding: 0; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<meta content="utf-8" http-equiv="encoding"> | |
<title>Default WebGL!</title> | |
<style> | |
html, body { | |
background-color:#000; | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<meta content="utf-8" http-equiv="encoding"> | |
<title>Default WebGL!</title> | |
<style> | |
html, body { | |
background-color:#000; | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<meta content="utf-8" http-equiv="encoding"> | |
<title>Default WebGL!</title> | |
<style> | |
html, body { | |
background-color:#000; | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<meta content="utf-8" http-equiv="encoding"> | |
<title>Default WebGL!</title> | |
<style> | |
html, body { | |
background-color:#000; | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = "https://boostlet.org/dist/boostlet.min.js"; | |
script.onload = run; | |
document.head.appendChild(script); | |
eval(script); | |
function run() { | |
canvas = viewer.canvas.children[0]; // TODO needs to be generic and executed with Boostlet.init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. hide crosslines | |
nv.setCrosshairColor([0,0,0,0]); | |
nv.opts.crosshairWidth=0; | |
nv.updateGLVolume(); | |
// 2. grab REAL pixels | |
c = document.getElementById('viewer') | |
ctx = c.getContext("webgl2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// VISIT DANIELHAEHN.COM ! | |
// | |
// Thanks to Alireza Seghi and Kevin Wang for all the help! | |
// | |
// | |
// | |
// GET EMBEDDING FOR CANVAS | |
element = cornerstone.getEnabledElements()[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Robot = function(x, y, z) { | |
// | |
// HEAD, NECK, TORSO | |
// | |
var fromhelper = HELPER.cylinderSkeletonMesh(3, 5, 'blue') | |
var geometry = fromhelper[0]; | |
var material = fromhelper[1]; | |
var bones = fromhelper[2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://unpkg.com/cornerstone-core/dist/cornerstone.min.js | |
"></script> | |
<script src="https://unpkg.com/cornerstone-wado-image-loader"></script> | |
<script src="https://unpkg.com/dicom-parser"></script> | |
<script src="https://unpkg.com/cornerstone-math"></script> | |
<script src="https://unpkg.com/cornerstone-tools"></script> | |
<script src="https://unpkg.com/hammerjs"></script> | |
<script> |