Comments (1)
See the below snippet. Edit tests/debug_server.html
with the below to run the example. It loads an image, then after 5 seconds closes it and load a new image (I use the atlas image just as an example since it's already part of the project).
I think there's lots to do to make a cleaner API for Papaya. Eventually I'll get around to that along with more documentation...
<script type="text/javascript">
/* DO NOT EDIT (start) -- papayaLoadableImages is generated by papaya-builder and is here for debugging purposes only */
var papayaLoadableImages = [
{nicename: "Sample Image", name: "sample_image", url: "../data/sample_image.nii.gz"},
{nicename: "Atlas", name:"Talairach_labels_1mm", url: "../data/Talairach_labels_1mm.nii.gz", hide:true}
];
/* DO NOT EDIT (end) */
var params = [];
params["images"] = ["../data/sample_image.nii.gz"];
params["atlas"] = ["Talairach_labels_1mm"];
setTimeout(function() {
papayaContainers[0].viewer.resetViewer();
papayaContainers[0].toolbar.updateImageButtons();
papayaContainers[0].viewer.loadImage(["../data/Talairach_labels_1mm.nii.gz"], true)
}, 5000);
</script>
from papaya.
Related Issues (20)
- Trouble creating new visualizer when page is already loaded HOT 1
- Client loading received image HOT 2
- Negative image HOT 1
- Using Papaya with React.js HOT 1
- [Bug?] Problem displaying images with PSR orientation
- How to integrate Papaya in a React.js component? HOT 3
- Need to add ref to mainView
- Get coordinates where mouse is/click HOT 2
- Hide and show certain surfaces
- Hide and show certain surfaces HOT 1
- Load vector3 for surface or do transformation only for one surface file?
- Add surface to params using addViewer() without reloading the whole viewer
- Large DICOM datasets overwhelm Chrome's request quota
- Making debug HTMLs like in the tests directory & Dev Guide
- Callback when error loading the images/surfaces
- URL Query Parameters - Opening an nii file
- Retrieve current image from specific View HOT 1
- Float32Array to papaya.Container.addImage HOT 1
- Not able to push changes that I have create to contribute to the project
- Urgent help needed - Error in ReactJS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papaya.