Difference between revisions of "Shoodak"

From apertus wiki
Jump to: navigation, search
Line 6: Line 6:
=Technical Details=
=Technical Details=


For color reconstruction a bi-linear method plus a weighted random (or pseudo random) influence of neighboring pixels is used.
For color reconstruction a bi-linear method plus a weighted (25% - 50% seems a reasonable range) random (or pseudo random) influence of neighboring pixels is used.


For blue pixels this creates following 8 random read out patterns (each pattern contains 1x red, 1x blue, 1x green pixel):
For blue pixels this creates following 8 random read out patterns (each pattern contains 1x red, 1x blue, 1x green pixel):
Line 16: Line 16:
For green pixels this creates following 4 random read out patterns (each pattern contains 1x red, 1x blue, 1x green pixel):
For green pixels this creates following 4 random read out patterns (each pattern contains 1x red, 1x blue, 1x green pixel):
[[File:Shoodak03.png | 800px]]
[[File:Shoodak03.png | 800px]]
==Preventing Zipper Artifacts==
A frequent problem with bi-linear debayering are so-called zipper artifacts. Visually this causes edges and lines with a zipper or chessboard look:
https://www.apertus.org/sites/default/files/DeBayering2.jpg
To counter these zipper artifacts a small percentage of the average of same-color neighboring pixels is added. percentages below 10% have shown good results.
Neighbors for Blue, Red and Green pixels:
[[File:Shoodak04.png | 800px]]
=References=
* What is debayering article: https://www.apertus.org/what-is-debayering-article-october-2015

Revision as of 15:07, 7 March 2018

SHOODAK is a debayering algorithm developed by Stephan Schuh (http://www.imdb.com/name/nm0775939/).

1 Scope

The goal of the SHOODAK debayering method is to avoid the typical "digital sharpness" that we know too well from digital cameras nowadays. SHOODAK is meant to create a more natural looking image that is perceived closer to 35mm film negative as there are no sharpening effects that create contrast lines around edges. Also SHOODAK is meant to preserve the original grain/noise pattern from image sensors as much as possible. The SHOODAK process is meant to be very lightweight in terms of required processing resources.

2 Technical Details

For color reconstruction a bi-linear method plus a weighted (25% - 50% seems a reasonable range) random (or pseudo random) influence of neighboring pixels is used.

For blue pixels this creates following 8 random read out patterns (each pattern contains 1x red, 1x blue, 1x green pixel): Shoodak01.png

For red pixels this creates following 8 random read out patterns (each pattern contains 1x red, 1x blue, 1x green pixel): Shoodak02.png

For green pixels this creates following 4 random read out patterns (each pattern contains 1x red, 1x blue, 1x green pixel): Shoodak03.png

2.1 Preventing Zipper Artifacts

A frequent problem with bi-linear debayering are so-called zipper artifacts. Visually this causes edges and lines with a zipper or chessboard look:

DeBayering2.jpg

To counter these zipper artifacts a small percentage of the average of same-color neighboring pixels is added. percentages below 10% have shown good results.

Neighbors for Blue, Red and Green pixels: Shoodak04.png

3 References