niivue / niivue

a WebGL2 based medical image viewer. Supports over 30 formats of volumes and meshes.
https://niivue.github.io/niivue/
BSD 2-Clause "Simplified" License
234 stars 55 forks source link

How does niivue perform measurement functions, similar to punctuation in OHIF, and then measure in millimeters #604

Closed rookiefishs closed 1 year ago

rookiefishs commented 1 year ago

image

We are a software development team from China and have encountered some issues recently when using the nivue library, such as the lack of measurement APIs in the nivue library and the inability to dynamically generate some tag information in the view through existing data. We hope to receive a response from the nivue development team!

hanayik commented 1 year ago

Hi, NiiVue supports measurement via a right click and drag. You can see a demo here by selecting measurement from the drag menu.

neurolabusc commented 1 year ago

@rookiefishs I see your screen shot shows the Open Health Imaging Foundation viewer which is open source and also uses a permissive open source licence. The OHIF viewer is built on cornerstone.js which was developed for medical imaging.

The NiiVue team is very small, and we have a different mission than the cornerstone.js team. Our niche is trying to solve the problems of neuroimaging scientists. Rectangles and Ovals are pretty crude tools for precisely measuring biological objects, and while they are often used by clinicians, these measures are not required for science (though we plan to improve our segmentation routines).

Before committing to NiiVue, you may want to consider if it is the appropriate tool for your application. I think there are excellent alternatives that solve slightly different problems.

Being a small team, we need to focus on the specific needs of our field. Trying to do everything requires a lot of resources and tends to create an overwhelming API.

If you feel NiiVue is the right tool for your needs, but you feel it is missing crucial features that are outside our core remit, I suggest that you make a fork of NiiVue and add the features you desire (or hire someone to implement these features). The license is permissive, so you can extend NiiVue as you wish. If you want, you can always submit mature features as a pull request. However, be aware that we may decide not to include features that are outside our mission.

rookiefishs commented 11 months ago

Hello, NiiVue supports measuring by right-clicking and dragging. You can select Measure from the drag menu to( https://niivue.github.io/niivue/features/draw.ui.html )View the presentation.

I saw the corresponding function, but I couldn't find the callback function after the measurement was completed, which prevented me from completing my requirements. I hope you can provide me with some help