diff --git a/packages/dicomImageLoader/src/shared/decoders/decodeHTJ2K.ts b/packages/dicomImageLoader/src/shared/decoders/decodeHTJ2K.ts index 3616e4e16..1e659dbda 100644 --- a/packages/dicomImageLoader/src/shared/decoders/decodeHTJ2K.ts +++ b/packages/dicomImageLoader/src/shared/decoders/decodeHTJ2K.ts @@ -57,8 +57,7 @@ export function initialize(decodeConfig?: LoaderDecodeOptions): Promise { // https://github.com/chafey/openjpegjs/blob/master/test/browser/index.html async function decodeAsync(compressedImageFrame: ByteArray, imageInfo) { await initialize(); - // const decoder = local.decoder; // This is much slower for some reason - const decoder = new local.codec.HTJ2KDecoder(); + const decoder = local.decoder; // get pointer to the source/encoded bit stream buffer in WASM memory // that can hold the encoded bitstream