View stack.html
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> |
View brush.html
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> |
View view.html
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> | |
cornerstoneWADOImageLoader.external.cornerstone = cornerstone; | |
cornerstoneWADOImageLoader.external.dicomParser = dicomParser; |
View load.html
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> | |
cornerstoneWADOImageLoader.external.cornerstone = cornerstone; | |
cornerstoneWADOImageLoader.external.dicomParser = dicomParser; |
View cornerstoneSobel.js
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
element = cornerstone.getEnabledElements()[0]; | |
pixels = element.image.getPixelData(); | |
new_pixels = Sobel(pixels, element.image.width, element.image.height); | |
pixels.set(new_pixels); | |
element.needsRedraw = true; |
View Robot.js with SkinnedMesh (WIP)
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) { | |
// create head, neck, and torso | |
var fromhelper = HELPER.cylinderSkeletonMesh(3, 5, 'blue') | |
var geometry = fromhelper[0]; | |
var material = fromhelper[1]; | |
var bones = fromhelper[2]; | |
var mesh = new THREE.SkinnedMesh( geometry, material ); | |
var skeleton = new THREE.Skeleton( bones ); |
View index.html
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 charset="UTF-8" /> | |
<style> | |
html, body { | |
background-color:#000; | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
overflow: hidden !important; |
View robot.js
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) { | |
this.head = new THREE.Bone(); | |
this.head.position.x = x; // world coordinates | |
this.head.position.y = y; | |
this.head.position.z = z; | |
this.neck = new THREE.Bone(); | |
this.neck.position.y = -10; |
View index.html
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"> | |
<style> | |
html, body { | |
background-color: #000; | |
margin: 0; | |
padding: 0; |
View index.html
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; |
NewerOlder