Kitware / vtk-js

Visualization Toolkit for the Web
https://kitware.github.io/vtk-js/
BSD 3-Clause "New" or "Revised" License
1.23k stars 370 forks source link

Why imageReslice do not support linear interpolator? #1716

Open RexingRui opened 3 years ago

RexingRui commented 3 years ago

@jourdain I implement mpr resliceCursor by myself, and I only use ImageReslice. But I want to set linear interpolator, vtk.js do not support it. I want to know why . Is it too slowly?

jourdain commented 3 years ago

@finetjul @martinken

finetjul commented 3 years ago

Hi @RexingRui , the only reason it has not been implemented is that I did not have the time to implement it at the time (and did not need it). Feel free to add it (look at how it is done in VTK C++). Merge requests are welcomed :-) Btw, what feature do you want in reliceCursor that does not exist in ResliceCursorWidget? Do you think that would make sense to add it back to vtk.js ?

RexingRui commented 3 years ago

Hi @finetjul . I think that resliceCursorWidget should provide some API, such as hiding cross lines , synchronous adjusting windowCenter and windowWidth in three windows, and getting screenshot of mpr.