I try itk.js using this example (ITK Read Dicom).
So I have a NodeJS server and launch a simple webpage to open DICOM Series.
When I try to load big Dicom Series (more than 700 images), then the loader does not work.
On Chrome console, I obtain this error:
"Error: Could not read file: /work/11.dcm at readImageEmscriptenFSDICOMFileSeries (http://localhost:8081/itk/WebWorkers/ImageIO.worker.js:59:356) at readDICOMImageSeries (http://localhost:8081/itk/WebWorkers/ImageIO.worker.js:32:3478) at http://localhost:8081/itk/WebWorkers/ImageIO.worker.js:32:3827 at o (http://localhost:8081/itk/WebWorkers/ImageIO.worker.js:2:2754) at http://localhost:8081/itk/WebWorkers/ImageIO.worker.js:2:3342 at http://localhost:8081/itk/WebWorkers/ImageIO.worker.js:2:3404"
I try to uptade the version of itk to 10.2.2 but nothing change. I tried also to open other dicoms with the same error. I open those dicom using python or C++ with no problem at all.
I also tried to use readImageLocalDICOMFileSeries function but I have another error:
TypeError: fs.readdirSync is not a function at eval (/myapp/node_modules/itk/readImageLocalDICOMFileSeries.js:22:21) at new Promise (<anonymous>) at readImageLocalDICOMFileSeries (/myapp/node_modules/itk/readImageLocalDICOMFileSeries.js:18:11) at HTMLInputElement.eval (/myapp/src/index.js:260:78)
Is it possible to load those “big” dicoms?