cornerstonejs / cornerstoneWADOImageLoader

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

Potential performance improvement by removing the canvas creation #508

Open sedghi opened 1 year ago

sedghi commented 1 year ago

Here we are creating the canvas which is only used in one of the decoders via decodeImageFrame and also later in the code if the image is color.

So we don't need to always create a canvas, the code should get refactored to only create canvas when needed which is much better