cornerstonejs / cornerstoneWADOImageLoader

[DEPRECATED] DICOM WADO Image Loader for the cornerstone library
MIT License
284 stars 266 forks source link

Reset cornerstoneWADOImageLoader imageId count #537

Closed syedkibrahim closed 8 months ago

syedkibrahim commented 8 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 8 months ago

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