# ImageDemosaic for BGGR decoding?

**URL:** <https://community.wolfram.com/t/imagedemosaic-for-bggr-decoding/21149>\
**Category:** Questions\
**Tags:** image-processing\
**Created:** [December 5, 2022, 5:25pm UTC](https://community.wolfram.com/t/imagedemosaic-for-bggr-decoding/21149 "2022-12-05T17:25:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeff](https://community.wolfram.com/u/jeff)\
**Post date:** [December 5, 2022, 5:25pm UTC](https://community.wolfram.com/t/imagedemosaic-for-bggr-decoding/21149/1 "2022-12-05T17:25:58Z")

</div>

I have a raw image with the pixels in the BGGR order.

```
ImageDemosaic[image, {"RGGB"}]

```

will decode the image but with the incorrect color.

How can I get the equivalent of ImageDemosaic[image, {“BGGR”}]?

---

<div class="post-metadata">

**Author:** ![jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeff](https://community.wolfram.com/u/jeff)\
**Post date:** [December 5, 2022, 6:14pm UTC](https://community.wolfram.com/t/imagedemosaic-for-bggr-decoding/21149/2 "2022-12-05T18:14:49Z")

</div>

Fix is simple.  
ImageDemosaic[image, {“RGGB”, {1, 1}}]
