• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Lossless JPEG compression of Bayer-pattern image

New Here ,
Apr 02, 2019 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'?

Views

505

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
community guidelines
no replies

Have something to add?

Join the conversation