xtk / X

The X Toolkit
http://www.goXTK.com
Other
793 stars 265 forks source link

interact with itk and vtk #142

Open JianCheng opened 10 years ago

JianCheng commented 10 years ago

Hi,

I am new in xtk. It looks very excited for me to visualize vtk file via browser. However it seems that those vtk files need to be pre-computed for visualization, cannot be computed just-in-time when people choose the parameters and click some buttons in browser.

I made a binary using itk and vtk. I would like to release it using xtk such that people do not need to build the codes.

Basically what I want is to build a GUI in browser, then people can choose some parameters, run the algorithms written in ITK, and visualize the output vtk files via browser.

In this way, people can perform fiber tracking or segmentation in browser. I think it is very useful.

I am not sure it is currently possible for xtk. Is there any examples for that?

BTW: is it possible for xtk to work with google native client? Its there any example for it?

NicolasRannou commented 10 years ago

I'm not sure to understand what you are looking for. What do you mean you did a binary with ITK and VTK? Do you want to run ITK on your web browser?

JianCheng commented 10 years ago

Sorry, maybe I did not make it clear.

For example, I developed a tractography method for diffusion MRI data, which is implemented using ITK and VTK. I would like to release it as a webapp. This method has some parameters. For different input parameters, it will generate different fibre tracts. The app should allow users to tune the parameters, generate different tracts using ITK and visualize them using VTK, when different parameters are set.

Lesson 06 is a good example to show a vtk file with pre-detected tracts. http://lessons.goxtk.com/06/ However I would like to generate this vtk file interactively when different parameters are set.

NicolasRannou commented 10 years ago

So you have a front end web-app, which is gonna send a request to the server to run a Tractography with ITK/VTK and you want to display back the results in the browser?

JianCheng commented 10 years ago

Yes, kind of. Currently I have a command line binary developed by ITK and VTK which performs tractography. I am looking for a good and convenient way to generate a web-app which can allows users to input parameters, then perform tractography and visualize the results in browser. If possible, also save the results into local machine. I think xtk and google native client may be two candidate choices.

NicolasRannou commented 10 years ago

Ah ok it makes sense now. VTK doesnt work with the native client?

JianCheng commented 10 years ago

I am afraid that it currently not. Someone asked the question in the vtk mail-list, but there is no answer from kitware http://vtk.1045678.n5.nabble.com/VTK-and-PNaCl-td5723625.html

native client uses opengl by default. VTK itself recently has some web-app support. https://github.com/Kitware/VTK/tree/master/Web But it is still not mature...

I am not sure if xtk can do this kind of stuff. It will be better if xtk has some examples about it, e.g. users input some parameters in browser, then c++ codes perform processing and generate results in vtk format, then xtk visualizes these results.