In order to improve the quality of locally-estimated normal maps with quantized data (such as a stereo camera, the Microsoft Kinect, or PrimeSense depth cameras), I came up with a method of linear blending quantized regions so normal maps show up smooth instead of planar. Top Right is input, Top Left is output.

GitHub Link