Highlighted

Lossless JPEG compression of Bayer-pattern image

New Here ,
Apr 02, 2019

Copy link to clipboard

Copied

Hello!

We have as input a 8 or 12-bit image in Bayer format (RGGB CFA).

We can store it uncompressed as DNG without much problem by specifying CFA_PATTERN.

Now we want to compress it using lossless JPEG, and the problem is that CFA_PATTERN seems to assume SAMPLESPERPIXEL=1. That means JPEG receives an image as greyscale with lots of high frequencies due to Bayer pattern, so it performs very badly.

Is there a way to compress individual RGGB input channels as separate JPEG 'planes'?

Topics

DNG

Views

276

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Lossless JPEG compression of Bayer-pattern image

New Here ,
Apr 02, 2019

Copy link to clipboard

Copied

Hello!

We have as input a 8 or 12-bit image in Bayer format (RGGB CFA).

We can store it uncompressed as DNG without much problem by specifying CFA_PATTERN.

Now we want to compress it using lossless JPEG, and the problem is that CFA_PATTERN seems to assume SAMPLESPERPIXEL=1. That means JPEG receives an image as greyscale with lots of high frequencies due to Bayer pattern, so it performs very badly.

Is there a way to compress individual RGGB input channels as separate JPEG 'planes'?

Topics

DNG

Views

277

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation