Skip to content

RFC: OpenJPEG based Jpeg2000 encoder #16524

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

Closed

Conversation

StefanBruens
Copy link
Contributor

Encoder part

This goes on top of #16494

Currently, the following input color spaces and depth conversions are
supported:

- 8 bit -> 8 bit
- 16 bit -> 16 bit (IMREAD_UNCHANGED, IMREAD_ANYDEPTH)

- RGB(a) -> BGR
- RGBA -> BGRA (IMREAD_UNCHANGED)
- Y(a) -> Y(a) (IMREAD_ANYCOLOR, IMREAD_GRAY, IMREAD_UNCHANGED))
- YCC -> Y (IMREAD_GRAY)
@alalek
Copy link
Member

alalek commented Feb 7, 2020

Please continue working in this PR: #16494

This enables OpenJPEG based JPEG2000 imread support by default, which
can be disabled by -DWITH_OPENJPEG=OFF. In case OpenJPEG is enabled
and found, any checks for Jasper are skipped.
…ANGED

With IMREAD_UNCHANGED, values are kept from the input image, without it
components are downscaled to CV_8U range.
Support IMREAD_GRAY when input color space is RGB or unspecified.
Support YUV input color space for BGR output.
@StefanBruens StefanBruens force-pushed the jpeg2000_openjpeg_encoder branch from ece8665 to 08e1b92 Compare February 7, 2020 14:42
Images with depth CV_8U and CV_16U are supported, with 1 to 4 channels.
@StefanBruens StefanBruens force-pushed the jpeg2000_openjpeg_encoder branch from 08e1b92 to d771046 Compare February 7, 2020 18:40
@alalek
Copy link
Member

alalek commented Mar 17, 2020

see #16494

@VadimLevin VadimLevin mentioned this pull request Mar 17, 2020
5 tasks
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

Successfully merging this pull request may close these issues.

2 participants