Comments (6)
from ipyniivue.
@kolibril13 please have a look closely at this. Note how infrequently addVolume/addMesh are called in real world examples compared to loadVolumes/loadMeshes.
I think adding all the volumes/meshes should be the priority, the other "add" APIs can be added later (as an optimization, as i mentioned above).
from ipyniivue.
It is not clear how to implement lazy loading for local 4D data since I believe this relies on HTTP range requests.
from ipyniivue.
Great progress! I like your systematic approach, these charts give a good overview of the project!
I was thinking that the next todos could be to investigate this example and adding
- al_min, cal_max,visibility
to class Volume(ipywidgets.Widget)
![image](https://private-user-images.githubusercontent.com/44469195/306698760-92053ff1-b73a-4f9d-9add-dd72a89cc937.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTEzMDU0OTksIm5iZiI6MTcxMTMwNTE5OSwicGF0aCI6Ii80NDQ2OTE5NS8zMDY2OTg3NjAtOTIwNTNmZjEtYjczYS00ZjlkLTlhZGQtZGQ3MmE4OWNjOTM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzI0VDE4MzMxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlZmZlYjAwNWRiNGQyYzRkY2Y4NGJkZTQ0M2VlNmIxNWY4OTgxZjVhMjliZGY1YTE3YmYzNTY3MTQyZmRlMDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-aFL4RbPW_O1q6IoNiiVttQvEyTaDAkWLVFgVpKrMG0)
https://niivue.github.io/niivue/features/additive.voxels.html
var volumeList1 = [
{ url: "../images/mni152.nii.gz" },
{
url: "../images/narps-4965_9U7M-hypo1_unthresh.nii.gz",
colormap: "red",
cal_min: 2,
cal_max: 4,
},
{
url: "../images/narps-4735_50GV-hypo1_unthresh.nii.gz",
colormap: "green",
cal_min: 2,
cal_max: 4,
},
];
from ipyniivue.
It is not clear how to implement lazy loading for local 4D data since I believe this relies on HTTP range requests.
@manzt , niivue does support loading specific volumes from 4D data using loadFromFile
. It's just controlled by the limitFrames4D
property.
However, this only works for NIFTI files (when the code detects). If not NIFTI, then the entire data range is loaded
However, i'm not sure if loadFromFile
is used in the jupyter notebook implementation. Are files served via a local python server, or is data communicated by other means?
from ipyniivue.
Volumes are serialized to binary data and send in one shot to the front end (over a websocket). We are using the new NVImage(arrayBuffer, ...)
API with the array buffer from the iamge.
from ipyniivue.
Related Issues (20)
- ipyniivue installting correctly but viewer window not showing up
- a
- Graph features
- Add custom colormaps
- devDependency requirement on @jupyterlab/builder@^4.0.0
- load_meshes HOT 1
- Building documentation HOT 8
- Review code of NiiVue Jupyter notebook integration in IPyNiiVue HOT 4
- load_meshes does not add the mesh to self.meshes in MacOS and Linux HOT 5
- Restarting the kernel fails to destroy the NiiVue object
- jupyterlab 4 support HOT 4
- ENH: Integration with MNE-Python
- Possible to add overlays and/or possibly saving the whole scene as .html file to harddrive?
- Prototype of ipyniivue using anywidget HOT 7
- Exposing `nv.saveScene` on the python side HOT 1
- Project admin, milestones, and roadmap
- ☂️ Volume HOT 9
- Better camel/snake scale conversion HOT 10
- Deleting big files HOT 2
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 ipyniivue.