Skip to content

RFC: OpenJPEG based Jpeg2000 encoder#16524

Closed
StefanBruens wants to merge 6 commits intoopencv:masterfrom
StefanBruens:jpeg2000_openjpeg_encoder
Closed

RFC: OpenJPEG based Jpeg2000 encoder#16524
StefanBruens wants to merge 6 commits intoopencv:masterfrom
StefanBruens:jpeg2000_openjpeg_encoder

Conversation

@StefanBruens
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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