Building ITK with emscripten

itk.js provides ITK 5.1 RC 3 compiled with Emscripten.

itk.js minimizes the need to learn JavaScript. If you have a segmentation pipeline written ITK / C++, itk.js makes it easy to build it and run it in a browser.

To build it, npx itk-js build . as described here:

https://insightsoftwareconsortium.github.io/itk-js/examples/hello_world_node.html

Here is what a simple test pipeline looks like (note that it is only standard ITK /CMake / C++):

https://github.com/InsightSoftwareConsortium/itk-js/tree/master/test/MedianFilterPipeline

Here is how to call it:

https://github.com/InsightSoftwareConsortium/itk-js/blob/16fe9367de0a28a29f3a4c17ad181ff3731ec168/test/Browser/runPipelineBrowserTest.js#L143-L155

1 Like