Hello folks. I have been learning itk.js for several days. I have a problem about the readImageDICOMFileSeries function. Here are some codes I wrote to read a DICOM file series as an itk.js Image object.
const files = document.getElementById('file').files;
readImageDICOMFileSeries(null, files)
.then((worker)=>{
const {image}=worker;
console.log(image);
})
.catch(error=>{
console.error(error);
alert(error.message);
})
Well, it worked fine for some dcm files. However, when I tried some files from another hospital, it just throw exceptions like this
message
:
"Could not read file: /work/4970_0001_259881493.dcm"
stack
:
"Error: Could not read file: /work/4970_0001_259881493.dcm↵ at readImageEmscriptenFSDICOMFileSeries (http://localhost:8080/itk/WebWorkers/ImageIO.worker.js:57:356)↵ at readDICOMImageSeries (http://localhost:8080/itk/WebWorkers/ImageIO.worker.js:30:3933)↵ at http://localhost:8080/itk/WebWorkers/ImageIO.worker.js:30:4284↵ at i (http://localhost:8080/itk/WebWorkers/ImageIO.worker.js:2:2049)↵ at o (http://localhost:8080/itk/WebWorkers/ImageIO.worker.js:2:1874)↵ at http://localhost:8080/itk/WebWorkers/ImageIO.worker.js:2:2423"
__proto__
Are there any incompatibility problems in the itk.js library?