Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance #13

Open
NicolasRannou opened this issue Dec 7, 2017 · 0 comments
Open

performance #13

NicolasRannou opened this issue Dec 7, 2017 · 0 comments

Comments

@NicolasRannou
Copy link

I use JPEG Lossless to load some CT data ( 1900 x 2500 x 80).
Each frames takes about 600ms to be decoded, so my total loading time is about 600ms x 80 frames, which is huge.

Is there any way to improve performance somehow?

I do the following for each frame:

    let byteOutput = bitsAllocated <= 8 ? 1 : 2;
    let decoder = new Jpeg.lossless.Decoder();
    let decompressedData = decoder.decode(encodedPixelData.buffer, encodedPixelData.byteOffset, encodedPixelData.length, byteOutput);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant