Giter VIP home page Giter VIP logo

Comments (6)

manzt avatar manzt commented on July 18, 2024 2

Visualization untitled

from ipyniivue.

manzt avatar manzt commented on July 18, 2024 1

@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.

manzt avatar manzt commented on July 18, 2024

It is not clear how to implement lazy loading for local 4D data since I believe this relies on HTTP range requests.

from ipyniivue.

kolibril13 avatar kolibril13 commented on July 18, 2024

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://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.

hanayik avatar hanayik commented on July 18, 2024

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.

manzt avatar manzt commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.