Lossless JPEG compression of Bayer-pattern image

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
View all replies

Views

204

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

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
View all replies

Views

205

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