readImageFile - webworker

Hello everyone, I work on an application that allows to read medical images (DICOM format) and I use a itk js (readImageFile) that allows to read these images but that returns a webworker to each image read the problem is when I read several images it generates several webworker and it blocks the browser, is there a way to remove them from network or resources, (I tried webworker.terminate() but it does not work in my case) thank you in advance.

Maybe you could look at this refactoring, which uses itk.js WorkerPool.

2 Likes

i will take a look thank you