Diagonal interpolation correction artifacts with AMaZE Demosaicing

I have just finished introducing the RCD demosaicing into photoflow. The implementation is based on the RT version, adapted to process small tiles in parallel.

Moreover, and following what @agriggio has reported, I have modified the RAW data clipping behaviour in photoflow, which results in much lower purple fringing around dark objects on clipped backgrounds. The improvement is actually visible for all demosaicing methods.

A small technical detail: I had to modify the code here and here to avoid inf values when the coefficients at the denominator are either equal but opposite, or very small.

Here is a comparison between Amaze and RCD with the new RAW clipping method:

Amaze:
DSC_0934-amaze-clip

RCD:
DSC_0934-rcd-clip

More details can be found in this other post on pixls.us.

For those interested, the photoflow code can be found here.

1 Like