QSolutionsLLC / cornerstone-vtk-mpr

MIT License
36 stars 18 forks source link

how to clean the referenceLine? #2

Open crysta-l opened 5 years ago

crysta-l commented 5 years ago

Thank you for creating this project. I use some code in my project to create mpr. But there are some problems, I need your help.

1.When I first generate mpr, the axial referenceLine does not exist from the beginning, only when I click on point。 I want to know how can I do so that it will exist from beginning

2.When I back to the another page then enter the mpr page to rebuild the mpr, the referenceLine didn't clean, I want to know how to clean it when destroyed

3.About how to generate mpr. I'd appreciate hearing them if you have any reading material suggestions.

crysta-l commented 5 years ago

when I click mpr button, create mpr image when I click back button still click mpr button, there was two referenceLine on each side

image image

dannyrb commented 5 years ago

👋 This was really just a proof of concept I played around with. For series of any substantial size, or for true free-form rotation, it became pretty clear that this approach would not be performant enough.

Your best bet is to look at vtk.js, ami.js or three.js. For special cases where you want to leverage cornerstone tools for annotations, you could pass back your current slice with changes applied. There is also some work being done to create a more generic SVG Widget Manager that could make it possible to render tool's using a shared API across cornerstone-tools and vtk.js

Unfortunately, that's all the information I have for you. I don't have much bandwidth to allocate to this. If you reach out to my current employer, Radical Imaging, you could contract me/us out for services to assist with problems like this.

crysta-l commented 5 years ago

Thank you for your quick reply, your suggestion I will consider