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

JPEG compression in wkw #27

Open
normanrz opened this issue Dec 19, 2018 · 3 comments
Open

JPEG compression in wkw #27

normanrz opened this issue Dec 19, 2018 · 3 comments

Comments

@normanrz
Copy link
Member

I noticed that catmaid and neuroglancer support jpeg compression for their file formats. I was wondering if it made sense to also support jpeg compression on a per-bucket basis in wkw. That would be an option to gain higher ratios through lossy, but still usable compression.

Any thoughts @amotta @philippotto?

@normanrz
Copy link
Member Author

Relates to #23

@philippotto
Copy link
Member

Also see #23 where @amotta already outlined a few thoughts.

From my point of view, this should definitely be worth a try. At the moment, cubes are compressed per bucket. We already have the option for LZ4 vs. LZ4HC. So, adding other compression algorithms should be relatively easy, if I'm not missing anything?

Regarding "lossy": The different magnifications could be viewed as lossy compressions, as well (very lossy :)). So, why not adding lossy image compression algorithms? We could even think about having mag 1 in original quality and lossy quality. Then, the lossy version could be used for flight-mode and the other version for ortho (would need support in WK and not wkw, but just as a general idea...)

@amotta
Copy link
Collaborator

amotta commented Dec 19, 2018

Hej hej

As you can see from issue #23, I'm all in favor of adding (potentially lossy) compression for image data. So, feel free to go ahead and implement this.

Personally, I don't know enough about volumetric image compression to argue for / against any particular algorithms. But I did find out that the OpenJPEG library contains an implementation of the JP3D.

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

3 participants