cornerstonejs / cornerstoneWADOImageLoader

[Deprecated] Use Cornerstone3D Instead https://cornerstonejs.org/
MIT License
285 stars 264 forks source link

Reset cornerstoneWADOImageLoader imageId count #537

Closed syedkibrahim closed 9 months ago

syedkibrahim commented 9 months ago

I am using corserstoneWADOImageLoader to load and view the files.

Using cornerstoneWADOImageLoader.wadouri.fileManager.add() I am getting the imageIds for each image like dicomfile:0, dicomfile:1, dicomfile:2 etc.

When I close and re-open the viewer, the dicomfile count does not start from 0, but continues from the last value. Is there a way to reset this count when I close the viewer ?

Any inputs or help will be appreciated, thanks.

syedkibrahim commented 9 months ago

Found it, tried with cornerstoneWADOImageLoader.wadouri.fileManager.purge() and it's working fine.