porting a C++ example to Emscripten

@Sebastien_Jourdain,
Hi,

I have a problem with an example in ITK and I am trying to solve it. I have couple of questions. i know this is a vtk forum but i figured you know enough about emscripten so you could be problem solver for my problem.

under ITK discussion forum @sag you could search and find me.
following is the message titile i have created asking for help:

ITK 5.2, WASM, itk-wasm, itk-wasm/emscripten, build example common/add noise to Binary Image, yinyang

I have put up a lot of pictures there to explain my problem. basically I use ITK-WASM BUILD command in node.js to call itkwasm/emscripten toolchain docker to compile and build my project which is a simple adding noise to yinyang.png image. I have built my c++ code into webassembly module and can communicate with javascript with it using runPipelineNode(pipelinepath, args). I use the HelloWorld example of mat maccormic. problem is i can build it into HelloWorld.js but when i run it using npx node index.mjs module it crashes at the itk::ReadImage(‘yinyang.png’). I send also yinyang.json itk::ReadImage, but still it crashes.

I have account both on ITK & VTK forums.

Any Help appreciated

BR
@Sohrab_Azami