MATLAB Code

The Cubic-Spline Interpolation Method:

Use wholeRun.m to run the interpolation. Adjust m_filter_width and filename within the script.
wholeRun.m
csi1D.m
LiRandawa_Interp.m
orientationMatrix.m
medianFilt.m
LiRandhawa_DirectionSelectedOutput.m

The Color Difference Method:

colorDifference.m

Support files:

bayerCFA.m
bayerCFA_NEG.m